Graph Traversals
Adding Nodes and Edges
Creation Operations
These operations allow you to add new elements to your graph.
AddN
Create new nodes in your graph.
- Example: Adding Nodes
AddE
Create connections between nodes in your graph.
-
Example: Adding Edges
Example: Adding Edges in a Traversal
You can also use the
AddE
operation in the middle of a traversal to add edges between a list of nodes or vectors.