goldman.graph
Class AdjacencyMatrix<V,E extends Edge<V>>
java.lang.Object
goldman.graph.AbstractGraph<V,E>
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.
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 |
AdjacencyMatrix
public AdjacencyMatrix(boolean directed,
boolean allowsMultiEdges)
AdjacencyMatrix
public AdjacencyMatrix()