java.lang.Object
org.jgrapht.generate.netgen.NetworkGenerator.Node
- Enclosing class:
NetworkGenerator<V,
E>
Internal representation of network nodes. This class is used to store auxiliary information
during generation process.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) List
<NetworkGenerator<V, E>.Node> List of chain nodes.(package private) V
Graph vertex counterpart of this node.(package private) int
Supply units of this node.(package private) NetworkGenerator.NodeType
Type of this node. -
Constructor Summary
ConstructorsConstructorDescriptionNode
(V graphVertex, NetworkGenerator.NodeType type) Creates a new node usinggraphVertex
andtype
. -
Method Summary
Modifier and TypeMethodDescription(package private) int
Returns the length of this node's chain.(package private) NetworkGenerator<V,
E>.Node Returns the last node of this node's chain.toString()
-
Field Details
-
Constructor Details
-
Node
Node(V graphVertex, NetworkGenerator.NodeType type) Creates a new node usinggraphVertex
andtype
.- Parameters:
graphVertex
- network vertex.type
- type of this node.
-
-
Method Details
-
getLastInChain
NetworkGenerator<V,E>.Node getLastInChain()Returns the last node of this node's chain.- Returns:
- the last node of this node's chain.
-
getChainLength
int getChainLength()Returns the length of this node's chain.- Returns:
- the length of this node's chain.
-
toString
-