Skip to content
  1. Examples

Read nodes and edges

This example shows how to retrieve nodes and edges from your Ogma instance. It uses the getNodes and getEdges methods to retrieve the nodes and edges from the graph. They return NodeList and EdgeList objects, which are iterable and can be transformed into read-only Arrays.