Struct GraphData
Base structure for graph elements.
Implements
IComparable<GraphData>
Namespace: Mars.Common.Collections.Graph
Assembly: Mars.Common.dll
Syntax
public struct GraphData : IComparable<GraphData>
Constructors
GraphData(Int32, IDictionary<String, Object>)
Initializes with a key identifier and data.
Declaration
public GraphData(int key, IDictionary<string, object> data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | Used for identification. |
IDictionary<System.String, System.Object> | data | Holds additional information |
Properties
Data
Holds additional information.
Declaration
public IDictionary<string, object> Data { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Object> |
Key
Identifies this GraphData object within the same graph.
Declaration
public int Key { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CompareTo(GraphData)
Declaration
public int CompareTo(GraphData other)
Parameters
Type | Name | Description |
---|---|---|
GraphData | other |
Returns
Type | Description |
---|---|
System.Int32 |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Implements
IComparable<>