Skip to content

Dev/gremlin valuemap - #250

Merged
lmeyerov merged 5 commits into
masterfrom
dev/gremlin_valuemap
Jul 14, 2021
Merged

lmeyerov merged 5 commits into
masterfrom
dev/gremlin_valuemap

Conversation

@lmeyerov

Copy link
Copy Markdown
Contributor
g2 = (g
  .neptune(**creds)
  .gremlin('g.E().limit(10)') # fetches nodes, edges
  .fetch_nodes()  # fetch node props
  .fetch_edges()) # fetch edge props

g2.plot()

Add:

  • fetch_edges: gremlin query for properties of current edges via g.neptune(...).gremlin(...).fetch_edges()

Fix:

  • fetch_nodes: do not wipe out edges if not None, e.g., fetch_nodes().fetch_edges() == fetch_edges().fetch_nodes()
  • Switch to g.V().elementMap() / g.E().elementMap() for fetch
  • Work around cosmos <> gremlin graphjson mismatches on neptune side. Must still revisit for enriching for cosmos gremlin dialect

@lmeyerov
lmeyerov merged commit ac3778b into master Jul 14, 2021
@lmeyerov
lmeyerov deleted the dev/gremlin_valuemap branch July 14, 2021 09:04
lmeyerov added a commit that referenced this pull request Mar 13, 2022
pull Bot referenced this pull request in admariner/pygraphistry Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant