|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
class DigraphAsMatrix(GraphAsMatrix, Digraph):
# ...
Implement the DigraphAsMatrix class
by providing suitable definitions for the following methods:
__init__,
purge,
addEdge, getEdge, isEdge,
vertices and edges.
You must also have a complete implementation of the base class
GraphAsMatrix (see Project