|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpanningTree
This interface defines the basic functionalities of a spanning tree algorithm.
It defines methods related to tagging the edges of the spanning tree and for iterating on them.
Method Summary | ||
---|---|---|
void |
clear()
Removes the tags of all edges. |
|
String |
getFlagAttribute()
Get key attribute which will be used to set if edges are in the spanning tree, or not. |
|
Object |
getFlagOff()
Get value used to set that an edge is not in the spanning tree. |
|
Object |
getFlagOn()
Get value used to set that an edge is in the spanning tree. |
|
|
getTreeEdges()
Iterable view of the spanning tree edges. |
|
|
getTreeEdgesIterator()
An iterator on the tree edges. |
|
void |
setFlagAttribute(String flagAttribute)
Set the flag attribute. |
|
void |
setFlagOff(Object flagOff)
Set value used to set that an edge is not in the spanning tree. |
|
void |
setFlagOn(Object flagOn)
Set value used to set that an edge is in the spanning tree. |
Methods inherited from interface org.graphstream.algorithm.Algorithm |
---|
compute, init |
Method Detail |
---|
String getFlagAttribute()
void setFlagAttribute(String flagAttribute)
flagAttribute
- New attribute used. If null
edges are not tagged.
IllegalStateException
- if Algorithm.init(Graph)
is already calledObject getFlagOn()
void setFlagOn(Object flagOn)
flagOn
- on value. If null
edges in the tree are not tagged.
IllegalStateException
- if Algorithm.init(Graph)
is already calledObject getFlagOff()
void setFlagOff(Object flagOff)
newFlagOff
- off value. If null
edges out of the tree are not
tagged.
IllegalStateException
- if Algorithm.init(Graph)
is already calledvoid clear()
<T extends org.graphstream.graph.Edge> Iterator<T> getTreeEdgesIterator()
<T extends org.graphstream.graph.Edge> Iterable<T> getTreeEdges()
getTreeEdgesIterator()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |