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.
|
java.lang.String |
getFlagAttribute()
Get key attribute which will be used to set if edges are in the spanning
tree, or not.
|
java.lang.Object |
getFlagOff()
Get value used to set that an edge is not in the spanning tree.
|
java.lang.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.
|
java.util.stream.Stream<org.graphstream.graph.Edge> |
getTreeEdgesStream()
An iterator on the tree edges.
|
void |
setFlagAttribute(java.lang.String flagAttribute)
Set the flag attribute.
|
void |
setFlagOff(java.lang.Object flagOff)
Set value used to set that an edge is not in the spanning tree.
|
void |
setFlagOn(java.lang.Object flagOn)
Set value used to set that an edge is in the spanning tree.
|
java.lang.String getFlagAttribute()
void setFlagAttribute(java.lang.String flagAttribute)
flagAttribute
- New attribute used. If null
edges are not tagged.java.lang.IllegalStateException
- if Algorithm.init(Graph)
is already calledjava.lang.Object getFlagOn()
void setFlagOn(java.lang.Object flagOn)
flagOn
- on value. If null
edges in the tree are not tagged.java.lang.IllegalStateException
- if Algorithm.init(Graph)
is already calledjava.lang.Object getFlagOff()
void setFlagOff(java.lang.Object flagOff)
flagOff
- off value. If null
edges out of the tree are not
tagged.java.lang.IllegalStateException
- if Algorithm.init(Graph)
is already calledvoid clear()
java.util.stream.Stream<org.graphstream.graph.Edge> getTreeEdgesStream()
<T extends org.graphstream.graph.Edge> java.lang.Iterable<T> getTreeEdges()
getTreeEdgesStream()
.T
- elements