Tuesday, November 16, 2004
Write Java classes to implement the Graph ADT (page 588) in the book. You will need to provide definitions for:
Vertex
class that represents each node or
vertex in the graph-- storing at least a name for the node and
some associated data (an Object
)
Edge
class that represents each edge--
storing at least a name for the edge, some associated data
value (an Object
), and the two nodes that are
connected by the edge
net.datastructures.Graph
interface,
thus supporting the operations listed on page 588 of the
textbook for the Graph ADT
Hand in a printout of all the commented Java program files that are necessary to make your program run correctly, and also submit them online through VikingWeb.