Show / Hide Table of Contents

Class DirectedMetaGraphExtensions

Directed graph extensions assuming it contains contracted data.

Inheritance
System.Object
DirectedMetaGraphExtensions
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 DirectedMetaGraphExtensions

Methods

AddEdge(DirectedMetaGraph, UInt32, UInt32, Single, Nullable<Boolean>, UInt32)

Add edge.

Declaration
public static void AddEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, float weight, bool ? direction, uint contractedId)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

AddEdge(DirectedMetaGraph, UInt32, UInt32, Single, Nullable<Boolean>, UInt32, Single, Single)

Add edge.

Declaration
public static void AddEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, float weight, bool ? direction, uint contractedId, float distance, float time)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

System.Single distance

System.Single time

AddOrUpdateEdge(DirectedMetaGraph, UInt32, UInt32, Single, Nullable<Boolean>, UInt32)

Add or update edge.

Declaration
public static void AddOrUpdateEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, float weight, bool ? direction, uint contractedId)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

AddOrUpdateEdge(DirectedMetaGraph, UInt32, UInt32, Single, Nullable<Boolean>, UInt32, Single, Single)

Add or update edge.

Declaration
public static void AddOrUpdateEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, float weight, bool ? direction, uint contractedId, float distance, float time)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

System.Single distance

System.Single time

ExpandEdge(DirectedMetaGraph, UInt32, UInt32, List<UInt32>, Boolean, Boolean)

Expands a the shortest edge between the two given vertices.

Declaration
public static void ExpandEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, List<uint> vertices, bool inverted, bool forward)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

List<System.UInt32> vertices

System.Boolean inverted

System.Boolean forward

ExpandEdge(DirectedMetaGraph.EdgeEnumerator, UInt32, UInt32, List<UInt32>, Boolean, Boolean)

Expands a the shortest edge between the two given vertices.

Declaration
public static void ExpandEdge(this DirectedMetaGraph.EdgeEnumerator edgeEnumerator, uint vertex1, uint vertex2, List<uint> vertices, bool inverted, bool forward)
Parameters
DirectedMetaGraph.EdgeEnumerator edgeEnumerator

System.UInt32 vertex1

System.UInt32 vertex2

List<System.UInt32> vertices

System.Boolean inverted

System.Boolean forward

GetShortestEdge(DirectedMetaGraph, UInt32, UInt32, Func<UInt32[], Nullable<Single>>)

Gets the shortest edge between two vertices.

Declaration
public static MetaEdge GetShortestEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, Func<uint[], float ? > getWeight)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

Func<System.UInt32[], System.Nullable<System.Single>> getWeight

Returns
MetaEdge

GetShortestEdgeContractedId(DirectedMetaGraph.EdgeEnumerator, UInt32, UInt32, Boolean)

Gets the contracted id for the shortest edge between two vertices.

Declaration
public static uint ? GetShortestEdgeContractedId(this DirectedMetaGraph.EdgeEnumerator edgeEnumerator, uint vertex1, uint vertex2, bool forward)
Parameters
DirectedMetaGraph.EdgeEnumerator edgeEnumerator

System.UInt32 vertex1

System.UInt32 vertex2

System.Boolean forward

Returns
System.Nullable<System.UInt32>

TryAddOrUpdateEdge(DirectedMetaGraph, UInt32, UInt32, Single, Nullable<Boolean>, UInt32, out Int32, out Int32)

Tries adding or updating an edge and returns #added and #removed edges.

Declaration
public static void TryAddOrUpdateEdge(this DirectedMetaGraph graph, uint vertex1, uint vertex2, float weight, bool ? direction, uint contractedId, out int added, out int removed)
Parameters
DirectedMetaGraph graph

System.UInt32 vertex1

System.UInt32 vertex2

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

System.Int32 added

System.Int32 removed

Back to top Built by Itinero, MIT licensed.