4.1.11.3. graph/GraphInterface¶
The Graph class implements the protocols.LabelledGraph protocol,
and thus have the following nested types.
- class Graph.Vertex¶
Implements the
protocols.LabelledGraph.Vertexprotocol. Additionally, theidis in the range \([0, numVertices[\).
- class Graph.Edge¶
Implements the
protocols.LabelledGraph.Edgeprotocol.
- class Graph.VertexRange¶
Implements the
protocols.Graph.VertexRangeprotocol, in addition to the following functionality.- __getitem__(i)¶
- Returns
the
ith vertex of the graph.- Return type
- class Graph.EdgeRange¶
Implements the
protocols.Graph.EdgeRangeprotocol.
- class Graph.IncidentEdgeRange¶
Implements the
protocols.Graph.IncidentEdgeRangeprotocol.