maspack.graph
Class Graph<A,B>

java.lang.Object
  extended by maspack.graph.DirectedGraph<A,B>
      extended by maspack.graph.Graph<A,B>

public class Graph<A,B>
extends DirectedGraph<A,B>


Constructor Summary
Graph()
           
 
Method Summary
 DirectedEdge<A,B> connect(Vertex<A,B> vtx1, Vertex<A,B> vtx2, B objEdge, double cost)
           
 int numEdges()
           
 
Methods inherited from class maspack.graph.DirectedGraph
addEdge, clear, cloneStructure, cloneStructure, connect, disconnect, exchangeData, exchangeData, exchangeEdgeData, exchangeEdgeData, exchangeVertexData, exchangeVertexData, findEdge, findEdge, findEndNodes, findStartNodes, findVertex, getDirectedEdge, getDirectedEdgeIndex, getEdges, getVertex, getVertexIndex, getVertices, numDirectedEdges, numVertices, removeEdge, removeVertex, shortestPath, shortestPath, shortestPath, shortestPath, traverseEdgesBackward, traverseEdgesForward, traverseVerticesBackward, traverseVerticesForward
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

connect

public DirectedEdge<A,B> connect(Vertex<A,B> vtx1,
                                 Vertex<A,B> vtx2,
                                 B objEdge,
                                 double cost)
Overrides:
connect in class DirectedGraph<A,B>

numEdges

public int numEdges()