An object-oriented Python library for open directed graphs (OpenDigraph) and boolean circuits (BoolCirc). It covers node and edge manipulation, well-formedness checks, random graph generation, import and export in the DOT format, cycle detection, topological sort, Dijkstra and shortest paths, and the parallel and sequential composition of graphs.
from modules.open_digraph import *
g = OpenDigraph.from_dot_file("tests/example_graph.dot")Run the tests with:
python tests/open_digraph_test.pyFirdaous Elouadi, Raphael Leonardi, and Baptiste Pras.