|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.graph.domain.basic.DirectedGraphImpl
Description of the Class
Field Summary | |
private java.util.List |
contracts
|
private java.util.Set |
edges
|
private java.util.Map |
edgeSource
|
private java.util.Map |
edgeTarget
|
private java.util.Map |
edgeWeights
|
private java.util.Map |
inbound
|
private java.util.Map |
outbound
|
private Vertex |
root
|
private java.util.Set |
vertices
|
Constructor Summary | |
DirectedGraphImpl()
Constructor for the DirectedGraphImpl object |
|
DirectedGraphImpl(DirectedGraph dg)
Constructor for the DirectedGraphImpl object |
Method Summary | |
void |
addContract(Contract c)
Adds a feature to the Contract attribute of the DirectedGraphImpl object |
void |
addEdge(Edge e,
Vertex start,
Vertex end)
Adds a feature to the Edge attribute of the DirectedGraphImpl object |
private void |
addEdgeI(Edge e,
Vertex start,
Vertex end)
Adds a feature to the EdgeI attribute of the DirectedGraphImpl object |
void |
addVertex(Vertex v)
Adds a feature to the Vertex attribute of the DirectedGraphImpl object |
private void |
addVertexI(Vertex v)
Adds a feature to the VertexI attribute of the DirectedGraphImpl object |
java.util.Set |
getEdges()
Gets the edges attribute of the DirectedGraphImpl object |
java.util.Set |
getEdges(Vertex v)
Gets the edges attribute of the DirectedGraphImpl object |
java.util.Set |
getInbound(Vertex v)
Gets the inbound attribute of the DirectedGraphImpl object |
java.util.Set |
getOutbound(Vertex v)
Gets the outbound attribute of the DirectedGraphImpl object |
Vertex |
getSource(Edge e)
Gets the source attribute of the DirectedGraphImpl object |
Vertex |
getTarget(Edge e)
Gets the target attribute of the DirectedGraphImpl object |
java.util.Set |
getVertices()
Gets the vertices attribute of the DirectedGraphImpl object |
java.util.Set |
getVertices(Edge e)
Gets the vertices attribute of the DirectedGraphImpl object |
double |
getWeight(Edge e)
Gets the weight attribute of the DirectedGraphImpl object |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Description of the Method |
void |
removeContract(Contract c)
Description of the Method |
void |
removeEdge(Edge e)
Description of the Method |
private void |
removeEdgeI(Edge e)
Description of the Method |
void |
removeVertex(Vertex v)
Description of the Method |
private void |
removeVertexI(Vertex v)
Description of the Method |
void |
setWeight(Edge e,
double value)
Sets the weight attribute of the DirectedGraphImpl object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vertex root
private java.util.Set vertices
private java.util.Set edges
private java.util.List contracts
private java.util.Map inbound
private java.util.Map outbound
private java.util.Map edgeSource
private java.util.Map edgeTarget
private java.util.Map edgeWeights
Constructor Detail |
public DirectedGraphImpl()
public DirectedGraphImpl(DirectedGraph dg)
dg
- Method Detail |
public void addContract(Contract c) throws GraphException
GraphException
public void removeContract(Contract c)
public void setWeight(Edge e, double value)
public java.util.Set getVertices()
getVertices
in interface Graph
public java.util.Set getVertices(Edge e)
getVertices
in interface Graph
public java.util.Set getEdges()
getEdges
in interface Graph
public java.util.Set getEdges(Vertex v)
getEdges
in interface Graph
public Vertex getSource(Edge e)
getSource
in interface DirectedGraph
public Vertex getTarget(Edge e)
getTarget
in interface DirectedGraph
public java.util.Set getInbound(Vertex v)
getInbound
in interface DirectedGraph
public java.util.Set getOutbound(Vertex v)
getOutbound
in interface DirectedGraph
private void addVertexI(Vertex v) throws GraphException
GraphException
public void addVertex(Vertex v) throws GraphException
addVertex
in interface MutableDirectedGraph
GraphException
private void removeVertexI(Vertex v) throws GraphException
GraphException
public void removeVertex(Vertex v) throws GraphException
removeVertex
in interface MutableDirectedGraph
GraphException
private void addEdgeI(Edge e, Vertex start, Vertex end) throws GraphException
GraphException
public void addEdge(Edge e, Vertex start, Vertex end) throws GraphException
addEdge
in interface MutableDirectedGraph
GraphException
private void removeEdgeI(Edge e) throws GraphException
GraphException
public void removeEdge(Edge e) throws GraphException
removeEdge
in interface MutableDirectedGraph
GraphException
public double getWeight(Edge e)
getWeight
in interface WeightedGraph
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |