Struct Node
The implementation of a node within the KNN graph.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Common.Collections.KNNGraph
Assembly: Mars.Common.dll
Syntax
[MessagePackObject(false)]
public struct Node
Remarks
This class is just a network container applicable for serialization
with MessagePack.
Fields
| Improve this Doc View SourceConnections
The implementation of a node within the KNN graph.
Declaration
[Key(0)]
public List<List<int>> Connections
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.List<System.Int32>> |
Remarks
This class is just a network container applicable for serialization
with MessagePack.
|
Improve this Doc
View Source
Id
The implementation of a node within the KNN graph.
Declaration
[Key(1)]
public int Id
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
This class is just a network container applicable for serialization
with MessagePack.
Properties
| Improve this Doc View SourceItem[Int32]
Gets connections ids of the node at the given layer
Declaration
public List<int> this[int layer] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | layer | The layer to get connections at. |
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | The connections of the node at the given layer. |
Remarks
This class is just a network container applicable for serialization
with MessagePack.
|
Improve this Doc
View Source
MaxLayer
Gets the max layer where the node is presented.
Declaration
[IgnoreMember]
public readonly int MaxLayer { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This class is just a network container applicable for serialization
with MessagePack.