|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.containers.ArrayNodeNumbering
public class ArrayNodeNumbering
A node numbering implementation which uses an ordinary Java array to store the node numbers. Only usable if graph has
GlobalNumberedNodesGraphProp| Constructor Summary | |
|---|---|
ArrayNodeNumbering()
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 ArrayNodeNumbering()
| Method Detail |
|---|
public void init(Graph g)
NodeNumbering
init in interface NodeNumberingg - the graph for which the NodeNumbering shall be defined.public void fill(int num)
NodeNumbering
fill in interface NodeNumberingnum - the value which shall be set.
public void setNumber(Node v,
int num)
NodeNumbering
setNumber in interface NodeNumberingv - 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 | ||||||||