|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.AbstractBaseGraph<V,E>
org.jgrapht.graph.Pseudograph<V,E>
org.javanetworkanalyzer.model.PseudoG<V,E>
public class PseudoG<V extends VId,E extends EdgeID>
A keyed pseudograph.
| Constructor Summary | |
|---|---|
PseudoG(Class<? extends V> vertexClass,
Class<? extends E> edgeClass)
Creates a new pseudograph. |
|
PseudoG(Class<? extends V> vertexClass,
org.jgrapht.EdgeFactory<V,E> ef)
Creates a new pseudograph with the specified edge factory. |
|
| 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 class org.jgrapht.graph.AbstractBaseGraph |
|---|
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, setEdgeWeight, vertexSet |
| Methods inherited from class org.jgrapht.graph.AbstractGraph |
|---|
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jgrapht.UndirectedGraph |
|---|
degreeOf |
| 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 |
| Constructor Detail |
|---|
public PseudoG(Class<? extends V> vertexClass,
Class<? extends E> edgeClass)
edgeClass - class on which to base factory for edges
public PseudoG(Class<? extends V> vertexClass,
org.jgrapht.EdgeFactory<V,E> ef)
ef - the edge factory of the new graph.| Method Detail |
|---|
public boolean addVertex(int id)
KeyedGraph
addVertex in interface KeyedGraph<V extends VId,E extends EdgeID>id - Id
public V getVertex(int id)
KeyedGraph
getVertex in interface KeyedGraph<V extends VId,E extends EdgeID>id - Id.
public E addEdge(int source,
int target)
KeyedGraph
addEdge in interface KeyedGraph<V extends VId,E extends EdgeID>source - Source id.target - Target Id.
public E addEdge(int source,
int target,
int edgeID)
KeyedGraph
addEdge in interface KeyedGraph<V extends VId,E extends 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 | |||||||||