|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.algorithm.AbstractSpanningTree
public abstract class AbstractSpanningTree
Constructor Summary | |
---|---|
AbstractSpanningTree()
Create a new SpanningTree algorithm. |
|
AbstractSpanningTree(String flagAttribute)
Create a new SpanningTree algorithm. |
|
AbstractSpanningTree(String flagAttribute,
Object flagOn,
Object flagOff)
Create a new SpanningTree algorithm. |
Method Summary | ||
---|---|---|
void |
clear()
Removes the tags of all edges. |
|
void |
compute()
Run the algorithm. |
|
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. |
|
abstract
|
getTreeEdgesIterator()
An iterator on the tree edges. |
|
void |
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm. |
|
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 class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSpanningTree()
public AbstractSpanningTree(String flagAttribute)
true
for edges in the tree and false
for the remaining
edges.
flagAttribute
- attribute used to compare edgespublic AbstractSpanningTree(String flagAttribute, Object flagOn, Object flagOff)
flagAttribute
- attribute used to set if an edge is in the spanning treeflagOn
- value of the flagAttribute if edge is in the spanning
treeflagOff
- value of the flagAttribute if edge is not in the
spanning treeMethod Detail |
---|
public String getFlagAttribute()
SpanningTree
getFlagAttribute
in interface SpanningTree
public void setFlagAttribute(String flagAttribute)
SpanningTree
setFlagAttribute
in interface SpanningTree
flagAttribute
- New attribute used. If null
edges are not tagged.public Object getFlagOn()
SpanningTree
getFlagOn
in interface SpanningTree
public void setFlagOn(Object flagOn)
SpanningTree
setFlagOn
in interface SpanningTree
flagOn
- on value. If null
edges in the tree are not tagged.public Object getFlagOff()
SpanningTree
getFlagOff
in interface SpanningTree
public void setFlagOff(Object flagOff)
SpanningTree
setFlagOff
in interface SpanningTree
public abstract <T extends org.graphstream.graph.Edge> Iterator<T> getTreeEdgesIterator()
SpanningTree
getTreeEdgesIterator
in interface SpanningTree
public <T extends org.graphstream.graph.Edge> Iterable<T> getTreeEdges()
SpanningTree
SpanningTree.getTreeEdgesIterator()
.
getTreeEdges
in interface SpanningTree
public void clear()
SpanningTree
clear
in interface SpanningTree
public void init(org.graphstream.graph.Graph graph)
Algorithm
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.
init
in interface Algorithm
graph
- The graph this algorithm is using.public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.
compute
in interface Algorithm
Algorithm.init(Graph)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |