spreadflow_core.graph module

Graph utilities.

spreadflow_core.graph.contract(g, f)

Returns a directed graph with all vertices from the input graph for which f() returns True while maintaining reachability.

spreadflow_core.graph.digraph(iterator)

Returns a directed graph built from the specified edge list.

spreadflow_core.graph.reverse(g)
spreadflow_core.graph.vertices(g, f=<function <lambda>>)