Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

Graph Classes#

rustworkx.PyGraph([multigraph, attrs, ...])

A class for creating undirected graphs

rustworkx.PyDiGraph([check_cycle, ...])

A class for creating directed graphs

rustworkx.PyDAG([check_cycle, multigraph, ...])

A class for creating direct acyclic graphs.