graphi package

graphi.graph

Default graph type implementation

An implementation of the Graph interface, suitable for most purposes. Support of all graph interfaces for both reading and writing is provided. The implementation is adequate for most use-cases, and provides a balance of complexity, performance and storage.

See:The corresponding class AdjacencyGraph for details.

alias of AdjacencyGraph

graphi.GraphABC

Graph abstract base class for type checks and virtual subclasses

The ABC is primarily needed for two cases:

  • Type checking to find graph classes via isinstance(), as in isinstance(candidate, GraphABC).
  • Actual or virtual subclasses acting as implementations of the graphi interface for type checks.
See:The corresponding class Graph for details.

alias of Graph