Class DictionaryAdapterGraphDistances
A IGraphDistances retrieving distances from a
Inheritance
System.Object
DictionaryAdapterGraphDistances
Implements
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: MoreStructures.Graphs
Assembly: MoreStructures.dll
Syntax
public class DictionaryAdapterGraphDistances : IGraphDistances
Constructors
| Improve this Doc View SourceDictionaryAdapterGraphDistances(IDictionary<(Int32, Int32), Int32>)
Declaration
public DictionaryAdapterGraphDistances(IDictionary<(int, int), int> dictionary)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<System.ValueTuple<System.Int32, System.Int32>, System.Int32> | dictionary | The mapping between edges and distances. |
Properties
| Improve this Doc View SourceItem[(Int32 edgeStart, Int32 edgeEnd)]
Declaration
public int this[(int edgeStart, int edgeEnd) edge] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Int32, System.Int32> | edge |
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Retrieves the value from the underlying dictionary.