|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.containers.MapAsNodeNumbering
public class MapAsNodeNumbering
Constructor Summary | |
---|---|
MapAsNodeNumbering()
Constructor. |
Method Summary | |
---|---|
void |
fill(int num)
Set the node number of all nodes to a given value. |
int |
getNumber(Node v)
Get the number of a single node. |
void |
init(Graph g)
Has to be invoked before the data structure can be used. |
void |
setNumber(Node v,
int num)
Set the number of a single node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapAsNodeNumbering()
Method Detail |
---|
public void init(Graph g)
NodeNumbering
init
in interface NodeNumbering
g
- the graph for which the NodeNumbering shall be defined.public void fill(int num)
NodeNumbering
fill
in interface NodeNumbering
num
- the value which shall be set.public void setNumber(Node v, int num)
NodeNumbering
setNumber
in interface NodeNumbering
v
- the nodenum
- the number to be setpublic int getNumber(Node v)
NodeNumbering
getNumber
in interface NodeNumbering
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |