Data Structures and Algorithms
with Object-Oriented Design Patterns in JavaThis section describes two concrete classes--GraphAsMatrix and GraphAsLists. These classes both represent undirected graphs. The GraphAsMatrix class represents the edges of a graph using an adjacency matrix. The GraphAsLists class represents the edges of a graph using adjacency lists.
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.