public interface SpanningTree extends Algorithm
It defines methods related to tagging the edges of the spanning tree and for iterating on them.
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T extends org.graphstream.graph.Edge> |
getTreeEdges()
Iterable view of the spanning tree edges.
|
<T extends org.graphstream.graph.Edge> |
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.
|
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().Copyright © 2015. All rights reserved.