goldman.graph
Class AdjacencyMatrix<V,E extends Edge<V>>

java.lang.Object
  extended by goldman.graph.AbstractGraph<V,E>
      extended by goldman.graph.AdjacencyMatrix<V,E>
All Implemented Interfaces:
Graph<V,E>, Iterable<V>

public class AdjacencyMatrix<V,E extends Edge<V>>
extends AbstractGraph<V,E>

The AdjacencyMatrix class provides an implementation for the adjacency matrix representation of a graph. This class just contains two constructors that wrap the AdjacencyMatrixRepresentation class.


Field Summary
 
Fields inherited from class goldman.graph.AbstractGraph
INF
 
Constructor Summary
AdjacencyMatrix()
           
AdjacencyMatrix(boolean directed, boolean allowsMultiEdges)
           
 
Method Summary
 
Methods inherited from class goldman.graph.AbstractGraph
addEdge, addVertex, allowsMultiEdges, containsEdge, containsVertex, edgesFrom, edgesTo, getConnectedComponents, getCycle, getEdge, getStronglyConnectedComponents, hasCycle, isDirected, iterator, numConnectedComponents, numStronglyConnectedComponents, numVertices, removeEdge, removeVertex, topologicalOrder, toString, unweightedShortestPaths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdjacencyMatrix

public AdjacencyMatrix(boolean directed,
                       boolean allowsMultiEdges)

AdjacencyMatrix

public AdjacencyMatrix()