Node Graph Tools#

This module provides basic tool for graphs, including

  • detect the senders and receivers in the network graph,

  • find input and output nodes in a given graph,

  • detect the cycle in the graph,

  • detect the path between two nodes.

find_senders_and_receivers(edges)

Find all senders and receivers in the given graph.

find_entries_and_exits(nodes, ff_edges[, ...])

Find input nodes and output nodes.

detect_cycle(nodes, edges)

Detect whether a cycle exists in the defined graph.

detect_path(from_node, to_node, edges[, method])

Detect whether there is a path exist in the defined graph from from_node to to_node.