public class GsJGraphtBaseGraph<V,E extends Edge<V>>
extends org.jgrapht.graph.AbstractGraph<V,E>
implements org.jgrapht.Graph<V,E>, org.jgrapht.EdgeFactory<V,E>
Modifier and Type | Field and Description |
---|---|
protected Map<V,org.ginsim.core.graph.backend.VInfo<V,E>> |
m_vertices |
static org.jgrapht.GraphType |
TYPE |
Constructor and Description |
---|
GsJGraphtBaseGraph() |
Modifier and Type | Method and Description |
---|---|
E |
addEdge(V sourceNode,
V targetNode) |
boolean |
addEdge(V sourceNode,
V targetNode,
E e) |
V |
addVertex() |
boolean |
addVertex(V v) |
boolean |
containsEdge(E e) |
boolean |
containsVertex(V v) |
E |
createEdge(V source,
V target) |
int |
degreeOf(V v) |
Set<E> |
edgeSet() |
Set<E> |
edgesOf(V vertex) |
Set<E> |
getAllEdges(V sourceNode,
V targetNode) |
E |
getEdge(V sourceNode,
V targetNode) |
org.jgrapht.EdgeFactory<V,E> |
getEdgeFactory() |
protected int |
getEdgesCount() |
V |
getEdgeSource(E e) |
Supplier<E> |
getEdgeSupplier() |
V |
getEdgeTarget(E e) |
double |
getEdgeWeight(E e) |
NodeViewInfo |
getNodeViewInfo(V vertex) |
org.jgrapht.GraphType |
getType() |
V |
getVertex(V v)
Get an existing vertex.
|
Supplier<V> |
getVertexSupplier() |
protected Collection<org.ginsim.core.graph.backend.VInfo<V,E>> |
getVInfoSet() |
Set<E> |
incomingEdgesOf(V vertex) |
int |
inDegreeOf(V vertex) |
int |
outDegreeOf(V vertex) |
Set<E> |
outgoingEdgesOf(V vertex) |
boolean |
removeEdge(E e) |
E |
removeEdge(V sourceNode,
V targetNode) |
boolean |
removeVertex(V v) |
void |
setEdgeWeight(E e,
double v) |
Set<V> |
vertexSet() |
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
public V addVertex()
public boolean addVertex(V v)
public boolean containsEdge(E e)
public boolean containsVertex(V v)
public int degreeOf(V v)
public boolean removeEdge(E e)
public boolean removeVertex(V v)
public int inDegreeOf(V vertex)
public int outDegreeOf(V vertex)
public NodeViewInfo getNodeViewInfo(V vertex)
public org.jgrapht.GraphType getType()
public double getEdgeWeight(E e)
public void setEdgeWeight(E e, double v)
protected int getEdgesCount()
protected Collection<org.ginsim.core.graph.backend.VInfo<V,E>> getVInfoSet()
Copyright © 2005–2020. All rights reserved.