Class KeyContainer
Holds the current index for nodes and edges.
Inheritance
System.Object
KeyContainer
Namespace: Mars.Common.Collections.Graph
Assembly: Mars.Common.dll
Syntax
public class KeyContainer : object
Properties
EdgeIndex
Holds current highest index of an existing edge.
-1 indicates no existing node.
Declaration
public int EdgeIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
NodeIndex
Holds current highest index of an existing node.
Declaration
public int NodeIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetNextEdgeIndex()
Gets and updates the next index used to identify edges.
-1 indicates no existing edge.
Declaration
public int GetNextEdgeIndex()
Returns
Type | Description |
---|---|
System.Int32 | Return the next index. |
GetNextNodeIndex()
Gets and updates the next index to identify nodes.
Declaration
public int GetNextNodeIndex()
Returns
Type | Description |
---|---|
System.Int32 | Returns the next index. |