|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.network.VertexStructure
public class VertexStructure
Records information about a vertex's forward (Outgoing) edges and backward (Incoming) edges.
| Constructor Summary | |
|---|---|
VertexStructure()
|
|
| Method Summary | |
|---|---|
void |
addBackward(EdgeInfo ei)
Add the given edge into the list of backward edges. |
void |
addForward(EdgeInfo ei)
Add the given edge into the list of forward edges. |
java.util.Iterator<EdgeInfo> |
backward()
Return iterator over backward edges. |
static VertexStructure[] |
construct(int numVertices)
Construct an array of VertexStructure objects, where each element is pre-initialized to a new VertexStructure. |
java.util.Iterator<EdgeInfo> |
forward()
Return iterator over forward edges. |
java.lang.String |
toString()
Useful for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VertexStructure()
| Method Detail |
|---|
public static VertexStructure[] construct(int numVertices)
numVertices - the size of the network problempublic java.util.Iterator<EdgeInfo> forward()
public java.util.Iterator<EdgeInfo> backward()
public void addForward(EdgeInfo ei)
ei - The designated edge with capacity information.public void addBackward(EdgeInfo ei)
ei - The designated edge with capacity information.public java.lang.String toString()
toString in class java.lang.Object
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||