|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectannas.graph.Graph<N,A>
annas.graph.UndirectedGraph<N,A>
N
- Node typeA
- Arc typepublic class UndirectedGraph<N,A extends ArcInterface<N>>
Implementation of a Undirected Graph similar to @see Directed Graph
Constructor Summary | |
---|---|
UndirectedGraph()
|
|
UndirectedGraph(GraphObserver observer)
|
Method Summary | |
---|---|
boolean |
addArc(N tail,
N head,
WeightedInterface wi)
Adds an arc to the graph, adds to directed arcs to the graph. |
Methods inherited from class annas.graph.Graph |
---|
addNode, contains, getArc, getArc, getArcFactory, getNodeMap, getNuArcs, getNuNodes, getObserver, getVersion, removeArc, removeArc, removeArc, removeNode, resetArcs, setObserver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface annas.graph.GraphInterface |
---|
addNode, contains, getArc, getArc, getArcFactory, getNodeMap, getNuArcs, getNuNodes, getObserver, getVersion, removeArc, removeArc, removeArc, removeNode, resetArcs |
Constructor Detail |
---|
public UndirectedGraph()
public UndirectedGraph(GraphObserver observer)
Method Detail |
---|
public boolean addArc(N tail, N head, WeightedInterface wi)
addArc
in interface GraphInterface<N,A extends ArcInterface<N>>
addArc
in class Graph<N,A extends ArcInterface<N>>
tail
- Tail of the archead
- Head of the arcwi
- WeightedInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |