MarkedGraph.existsNode
- MarkedGraph.existsNode(id)
Check whether a node with the given id exists in the graph.
- Parameters:
id (
int) – the id to check- Returns:
True if the node exists
- Return type:
bool
Example
import pyagrum as gum
g = gum.fastMarkedGraph("A->B")
g.existsNode(1), g.existsNode(2)
# (True, False)
Used by
