Projected graphs are stored entirely in-memory (in the heap). In order to know how much memory is required to store a projected graph with the given nodes, relationships, and properties, we can use the following procedures:
gds.graph.create.estimate(...)
// or
gds.graph.create.cypher.estimate(...)
There are several ways to use this procedure, but in all cases, it will return, among others, the following parameters:
- requiredMemory: The total required RAM
- mapView: A detailed description about which entities require more memory between nodes, relationships, and properties
- nodeCount: The total number of nodes in the projected graph
- relationshipCount: The total number of relationships in the projected graph
Let's study a few examples.