Basic implemenation of Graph.
See Also:Graph author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
Constructor Summary
public
BasicGraph() Constructs an empty graph with edge and node collections uninitialized.
public
BasicGraph(Collection nodes, Collection edges) Constructs a graph from a collection of nodes and a collection of edges.
The relationships between the nodes (edges) are already assumed to be
formed.
Constructs a graph from a collection of nodes and a collection of edges.
The relationships between the nodes (edges) are already assumed to be
formed. Only the references to the node and edge collections are copied,
not the underlying collections themselves.
Parameters: nodes - Collection of nodes to be contained by the graph. Parameters: edges - Collection of edges to be contained by the graph.
Returns the string representation of the graph which is
just the string representation of the edge and node collections.
String represtentaton of graph.