Class EdgeDifferencePriorityCalculator<T>
A priority calculator.
Inheritance
System.Object
EdgeDifferencePriorityCalculator<T>
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 class EdgeDifferencePriorityCalculator<T> : IPriorityCalculator where T : struct
Type Parameters
T
|
Constructors
EdgeDifferencePriorityCalculator(DirectedDynamicGraph, WeightHandler<T>, IWitnessCalculator<T>)
Creates a new priority calculator.
Declaration
public EdgeDifferencePriorityCalculator(DirectedDynamicGraph graph, WeightHandler<T> weightHandler, IWitnessCalculator<T> witnessCalculator)
Parameters
DirectedDynamicGraph
graph
|
WeightHandler<T>
weightHandler
|
IWitnessCalculator<T>
witnessCalculator
|
Properties
ContractedFactor
Gets or sets the contracted factor.
Declaration
public int ContractedFactor { get; set; }
Property Value
System.Int32
|
DepthFactor
Gets or sets the depth factor.
Declaration
public int DepthFactor { get; set; }
Property Value
System.Int32
|
DifferenceFactor
Gets or sets the difference factor.
Declaration
public int DifferenceFactor { get; set; }
Property Value
System.Int32
|
Methods
Calculate(BitArray32, Func<UInt32, IEnumerable<UInt32[]>>, UInt32)
Calculates the priority of the given vertex.
Declaration
public float Calculate(BitArray32 contractedFlags, Func<uint, IEnumerable<uint[]>> getRestrictions, uint vertex)
Parameters
BitArray32
contractedFlags
|
Func<System.UInt32, IEnumerable<System.UInt32[]>>
getRestrictions
|
System.UInt32
vertex
|
Returns
System.Single
|
Implements
NotifyContracted(UInt32)
Notifies this calculator that the given vertex was contracted.
Declaration
public void NotifyContracted(uint vertex)
Parameters
System.UInt32
vertex
|