poppy.core.generic.graph module

class poppy.core.generic.graph.Graph[source]

Bases: object

A class to manage the graph that is storing the topology of the graph.

add_node(node, child)[source]

Add a node to the graph, with a given child.

find_all_paths(start, end, path=None)[source]

Find all existing paths between to nodes.

find_linking_nodes(start, end)[source]

To find all nodes between two nodes. This is the concatenation of all paths between the two nodes in argument.