Show / Hide Table of Contents

Class Extensions

Contains extension methods for the directed graphs and related.

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

Methods

Count(DirectedDynamicGraph.EdgeEnumerator)

Returns the number of elements in this enumerator.

Declaration
public static int Count(this DirectedDynamicGraph.EdgeEnumerator enumerator)
Parameters
DirectedDynamicGraph.EdgeEnumerator enumerator

Returns
System.Int32

First(DirectedDynamicGraph.EdgeEnumerator)

Moves the numerator to the first element.

Declaration
public static DirectedDynamicGraph.EdgeEnumerator First(this DirectedDynamicGraph.EdgeEnumerator enumerator)
Parameters
DirectedDynamicGraph.EdgeEnumerator enumerator

Returns
DirectedDynamicGraph.EdgeEnumerator

First(DirectedDynamicGraph.EdgeEnumerator, Func<DirectedDynamicGraph.EdgeEnumerator, Boolean>)

Moves the enumerator until the given condition is true or throws an exception if the condition is never true.

Declaration
public static DirectedDynamicGraph.EdgeEnumerator First(this DirectedDynamicGraph.EdgeEnumerator enumerator, Func<DirectedDynamicGraph.EdgeEnumerator, bool> stop)
Parameters
DirectedDynamicGraph.EdgeEnumerator enumerator

Func<DirectedDynamicGraph.EdgeEnumerator, System.Boolean> stop

Returns
DirectedDynamicGraph.EdgeEnumerator

GetEdge(DirectedDynamicGraph.EdgeEnumerator, UInt32, UInt32)

Gets the edge from vertex1 -> vertex2.

Declaration
public static DynamicEdge GetEdge(this DirectedDynamicGraph.EdgeEnumerator enumerator, uint vertex1, uint vertex2)
Parameters
DirectedDynamicGraph.EdgeEnumerator enumerator

System.UInt32 vertex1

System.UInt32 vertex2

Returns
DynamicEdge

GetEdgeEnumerator(DirectedDynamicGraph, UInt32)

Returns enumerator for the given vertex. Throws an exception if the vertex is not in the graph.

Declaration
public static DirectedDynamicGraph.EdgeEnumerator GetEdgeEnumerator(this DirectedDynamicGraph graph, uint vertex)
Parameters
DirectedDynamicGraph graph

System.UInt32 vertex

Returns
DirectedDynamicGraph.EdgeEnumerator

Back to top Built by Itinero, MIT licensed.