|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.graph.domain.basic.UndirectedGraphImpl
Description of the Class
Field Summary | |
private java.util.Set |
edges
|
private java.util.Map |
edgeVerts
|
private java.util.Map |
edgeWeights
|
private java.util.Map |
vertEdges
|
private java.util.Set |
vertices
|
Constructor Summary | |
UndirectedGraphImpl()
Constructor for the UndirectedGraphImpl object |
Method Summary | |
void |
addEdge(Edge e)
Adds a feature to the Edge attribute of the MutableGraph object |
void |
addEdge(Edge e,
java.util.Set vertices)
Adds a feature to the Edge attribute of the UndirectedGraphImpl object |
void |
addVertex(Vertex v)
Adds a feature to the Vertex attribute of the UndirectedGraphImpl object |
void |
connect(Edge e,
Vertex v)
Description of the Method |
void |
disconnect(Edge e,
Vertex v)
Description of the Method |
java.util.Set |
getEdges()
Gets the edges attribute of the UndirectedGraphImpl object |
java.util.Set |
getEdges(Vertex v)
Gets the edges attribute of the UndirectedGraphImpl object |
java.util.Set |
getVertices()
Gets the vertices attribute of the UndirectedGraphImpl object |
java.util.Set |
getVertices(Edge e)
Gets the vertices attribute of the UndirectedGraphImpl object |
double |
getWeight(Edge e)
Gets the weight attribute of the WeightedGraph object |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Description of the Method |
void |
removeEdge(Edge e)
Description of the Method |
void |
removeVertex(Vertex v)
Description of the Method |
void |
setWeight(Edge e,
double w)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Set vertices
private java.util.Set edges
private java.util.Map edgeVerts
private java.util.Map vertEdges
private java.util.Map edgeWeights
Constructor Detail |
public UndirectedGraphImpl()
Method Detail |
public void addVertex(Vertex v) throws GraphException
addVertex
in interface MutableGraph
GraphException
public void removeVertex(Vertex v) throws GraphException
MutableGraph
removeVertex
in interface MutableGraph
GraphException
public void removeEdge(Edge e) throws GraphException
MutableGraph
removeEdge
in interface MutableGraph
GraphException
public void addEdge(Edge e) throws GraphException
MutableGraph
addEdge
in interface MutableGraph
GraphException
public void disconnect(Edge e, Vertex v)
MutableGraph
disconnect
in interface MutableGraph
public void connect(Edge e, Vertex v)
MutableGraph
connect
in interface MutableGraph
public void addEdge(Edge e, java.util.Set vertices) throws GraphException
GraphException
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 void setWeight(Edge e, double w)
public double getWeight(Edge e)
WeightedGraph
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 |