id#

relationalai.std.graphs.Graph
Graph.id

Returns the unique integer ID assigned to the graph instance.

Example#

import relationalai as rai
from relationalai.std.graphs import Graph

model = rai.Model("myModel")
graph = Graph(model)

print(graph.id)
# Output:
# 1