Struct GraphData
Base structure for graph elements.
Implements
System.IComparable<GraphData>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Common.Collections.Graph
Assembly: Mars.Common.dll
Syntax
[MessagePackObject(true)]
public struct GraphData : IComparable<GraphData>
Constructors
| Improve this Doc View SourceGraphData(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. |
System.Collections.Generic.IDictionary<System.String, System.Object> | data | Holds additional information |
Properties
| Improve this Doc View SourceData
Holds additional information.
Declaration
public readonly IDictionary<string, object> Data { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
Key
Identifies this GraphData object within the same graph.
Declaration
public int Key { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCompareTo(GraphData)
Base structure for graph elements.
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. |
Overrides
System.ValueType.GetHashCode()
Implements
System.IComparable<T>