|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KeyedGraph<V,E extends EdgeID>
An interface for adding V vertices to a graph keyed by int ids.
| Method Summary | |
|---|---|
E |
addEdge(int source,
int target)
Add an edge from the vertex with id source to the vertex with id target. |
E |
addEdge(int source,
int target,
int edgeID)
Add an edge from the vertex with id source to the vertex with id target and set the edge id. |
boolean |
addVertex(int id)
Add a vertex with the given id. |
V |
getVertex(int id)
Get the vertex with the given id. |
| Methods inherited from interface org.jgrapht.Graph |
|---|
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet |
| Method Detail |
|---|
boolean addVertex(int id)
id - Id
V getVertex(int id)
id - Id.
E addEdge(int source,
int target)
source - Source id.target - Target Id.
E addEdge(int source,
int target,
int edgeID)
source - Source id.target - Target id.edgeID - Edge id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||