Class VertexInfoExtensions
Contains extension methods related to the vertex info data structure.
Inheritance
System.Object
VertexInfoExtensions
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 VertexInfoExtensions
Methods
AddRelevantEdges<T>(VertexInfo<T>, DirectedMetaGraph.EdgeEnumerator)
Adds edges relevant for contraction to the given vertex info, assuming it's empty.
Declaration
public static void AddRelevantEdges<T>(this VertexInfo<T> vertexInfo, DirectedMetaGraph.EdgeEnumerator enumerator)where T : struct
Parameters
|
VertexInfo<T>
vertexInfo
|
|
DirectedMetaGraph.EdgeEnumerator
enumerator
|
Type Parameters
|
T
|
BuildShortcuts<T>(VertexInfo<T>, WeightHandler<T>)
Builds the potential shortcuts.
Declaration
public static void BuildShortcuts<T>(this VertexInfo<T> vertexinfo, WeightHandler<T> weightHandler)where T : struct
Parameters
|
VertexInfo<T>
vertexinfo
|
|
WeightHandler<T>
weightHandler
|
Type Parameters
|
T
|
Priority<T>(VertexInfo<T>, DirectedMetaGraph, WeightHandler<T>, Single, Single, Single, Single)
Calculates the priority of this vertex.
Declaration
public static float Priority<T>(this VertexInfo<T> vertexInfo, DirectedMetaGraph graph, WeightHandler<T> weightHandler, float differenceFactor, float contractedFactor, float depthFactor, float weightDiffFactor = 1F)where T : struct
Parameters
|
VertexInfo<T>
vertexInfo
|
|
DirectedMetaGraph
graph
|
|
WeightHandler<T>
weightHandler
|
|
System.Single
differenceFactor
|
|
System.Single
contractedFactor
|
|
System.Single
depthFactor
|
|
System.Single
weightDiffFactor
|
Returns
|
System.Single
|
Type Parameters
|
T
|
RemoveShortcuts<T>(VertexInfo<T>, DirectedGraph, WeightHandler<T>)
Declaration
public static bool RemoveShortcuts<T>(this VertexInfo<T> vertexInfo, DirectedGraph witnessGraph, WeightHandler<T> weightHandler)where T : struct
Parameters
|
VertexInfo<T>
vertexInfo
|
|
DirectedGraph
witnessGraph
|
|
WeightHandler<T>
weightHandler
|
Returns
|
System.Boolean
|
Type Parameters
|
T
|