Struct NodeData
Represents a node in the SpatialGraph
  
  Implements
System.Collections.Generic.IComparer<NodeData>
    System.IEquatable<NodeData>
    System.Collections.Generic.IEqualityComparer<NodeData>
  Inherited Members
      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 NodeData : IComparer<NodeData>, IEquatable<NodeData>, IEqualityComparer<NodeData>Constructors
| Improve this Doc View SourceNodeData(Int32, IDictionary<String, Object>, Position, Boolean)
Initializes the node.
  
  Declaration
public NodeData(int key, IDictionary<string, object> data, Position position, bool isHelperNode = false)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | key | Internal and SpatialGraph specific identifier. | 
| System.Collections.Generic.IDictionary<System.String, System.Object> | data | Any data that is associated with the node. | 
| Position | position | Geo-locational reference. | 
| System.Boolean | isHelperNode | A flag indicating whether the node was created by the system automatically | 
Properties
| Improve this Doc View SourceData
Holds additional information.
  
  Declaration
public IDictionary<string, object> Data { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IDictionary<System.String, System.Object> | 
IncomingEdges
The keys of all incoming edges. These keys are internal, SpatialGraph specific.
  
  Declaration
public ISet<int> IncomingEdges { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.ISet<System.Int32> | 
IsHelperNode
Gets or sets the flag, that this NodeData was created by the spatial graph itself.
  
  Declaration
public bool IsHelperNode { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Key
Identifies this GraphData object within the same graph.
  
  Declaration
public int Key { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
NodeOrder
The order within with contraction hierarchy
  
  Declaration
public int NodeOrder { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
OutgoingEdges
The keys of all outgoing edges. These keys are internal, SpatialGraph specific.
  
  Declaration
public ISet<int> OutgoingEdges { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.ISet<System.Int32> | 
Position
Holds the geolocation of this object.
  
  Declaration
public Position Position { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| Position | 
Shortcuts
Gets or sets the shortcuts to reach a node->EdgeData route.
  
  Declaration
public IDictionary<int, IList<int>> Shortcuts { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IDictionary<System.Int32, System.Collections.Generic.IList<System.Int32>> | 
Methods
| Improve this Doc View SourceCompare(NodeData, NodeData)
Represents a node in the SpatialGraph
  
  Declaration
public int Compare(NodeData x, NodeData y)Parameters
| Type | Name | Description | 
|---|---|---|
| NodeData | x | |
| NodeData | y | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
CompareTo(NodeData)
Represents a node in the SpatialGraph
  
  Declaration
public int CompareTo(NodeData other)Parameters
| Type | Name | Description | 
|---|---|---|
| NodeData | other | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Equals(NodeData, NodeData)
Represents a node in the SpatialGraph
  
  Declaration
public bool Equals(NodeData x, NodeData y)Parameters
| Type | Name | Description | 
|---|---|---|
| NodeData | x | |
| NodeData | y | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Equals(NodeData)
Represents a node in the SpatialGraph
  
  Declaration
public bool Equals(NodeData other)Parameters
| Type | Name | Description | 
|---|---|---|
| NodeData | other | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Equals(Object)
Represents a node in the SpatialGraph
  
  Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
System.ValueType.Equals(System.Object)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  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()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode(NodeData)
Represents a node in the SpatialGraph
  
  Declaration
public int GetHashCode(NodeData obj)Parameters
| Type | Name | Description | 
|---|---|---|
| NodeData | obj | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Implements
      System.Collections.Generic.IComparer<T>
  
  
      System.IEquatable<T>
  
  
      System.Collections.Generic.IEqualityComparer<T>