Class KeyContainer
Holds the current index for nodes and edges.
Inheritance
System.Object
KeyContainer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.Collections.Graph
Assembly: Mars.Common.dll
Syntax
[MessagePackObject(true)]
public class KeyContainer
Properties
| Improve this Doc View SourceEdgeIndex
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
| Improve this Doc View SourceGetNextEdgeIndex()
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. |