All versions of this documentation
Download code Jump to the code Open in the playground

Read nodes and edges

Nodes and edges in the graph are embedded in NodeList and EdgeList data-structures. In the following example, we show how we can iterate on those structures to print the ids to the console, and how those structures can be transformed into read-only Arrays.