sampo.generator.utils.graph_node_operations#

Overview#

Function#

count_node_ancestors(finish, root)

Counts the number of ancestors of the whole graph.

Functions#

sampo.generator.utils.graph_node_operations.count_node_ancestors(finish: sampo.schemas.graph.GraphNode, root: sampo.schemas.graph.GraphNode) int#

Counts the number of ancestors of the whole graph.

Parameters:
  • finish – The node for which ancestors are to be counted.

  • root – The root node of the graph.

Returns: