Show / Hide Table of Contents

Class GraphExtensions

Contains extension methods for the graph.

Inheritance
System.Object
GraphExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class GraphExtensions

Methods

FindBestEdge<T>(Graph.EdgeEnumerator, WeightHandler<T>, UInt32, UInt32, out T)

Finds the best edge between the two given vertices.

Declaration
public static long FindBestEdge<T>(this Graph.EdgeEnumerator edgeEnumerator, WeightHandler<T> weightHandler, uint vertex1, uint vertex2, out T bestWeight)where T : struct
Parameters
Graph.EdgeEnumerator edgeEnumerator

WeightHandler<T> weightHandler

System.UInt32 vertex1

System.UInt32 vertex2

T bestWeight

Returns
System.Int64

Type Parameters
T

GetEdge(Graph, Int64)

Gets the given edge.

Declaration
public static Edge GetEdge(this Graph graph, long directedEdgeId)
Parameters
Graph graph

System.Int64 directedEdgeId

Returns
Edge

GetOther(Edge, UInt32)

Gets the vertex on this edge that is not the given vertex.

Declaration
public static uint GetOther(this Edge edge, uint vertex)
Parameters
Edge edge

System.UInt32 vertex

Returns
System.UInt32

Back to top Built by Itinero, MIT licensed.