Show / Hide Table of Contents

Class BestFirstFrontierSearchAlgorithm<TVertex, TEdge>

Best first frontier search algorithm.

Inheritance
System.Object
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>
BestFirstFrontierSearchAlgorithm<TVertex, TEdge>
Implements
IAlgorithm<IBidirectionalIncidenceGraph<TVertex, TEdge>>
IComputation
IAlgorithmComponent
ITreeBuilderAlgorithm<TVertex, TEdge>
Inherited Members
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.TryGetTargetVertex(TVertex)
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.SetTargetVertex(TVertex)
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.ClearTargetVertex()
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.TargetVertexChanged
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnTargetVertexChanged(EventArgs)
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.TargetReached
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnTargetReached()
RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.Compute(TVertex, TVertex)
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.TryGetRootVertex(TVertex)
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.SetRootVertex(TVertex)
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.ClearRootVertex()
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.RootVertexChanged
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnRootVertexChanged(EventArgs)
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.GetAndAssertRootInGraph()
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.AssertRootInGraph(TVertex)
RootedAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>.Compute(TVertex)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.SyncRoot
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.State
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Compute()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Abort()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.StateChanged
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnStateChanged(EventArgs)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Started
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnStarted(EventArgs)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Finished
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnFinished(EventArgs)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Aborted
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.OnAborted(EventArgs)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.VisitedGraph
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Services
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.GetService<T>()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.TryGetService<T>(T)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.TryGetService(Type, Object)
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.ThrowIfCancellationRequested()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Initialize()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.InternalCompute()
AlgorithmBase<IBidirectionalIncidenceGraph<TVertex, TEdge>>.Clean()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: QuikGraph.Algorithms.Search
Assembly: QuikGraph.dll
Syntax
public sealed class BestFirstFrontierSearchAlgorithm<TVertex, TEdge> : RootedSearchAlgorithmBase<TVertex, IBidirectionalIncidenceGraph<TVertex, TEdge>>, IAlgorithm<IBidirectionalIncidenceGraph<TVertex, TEdge>>, IComputation, IAlgorithmComponent, ITreeBuilderAlgorithm<TVertex, TEdge> where TEdge : IEdge<TVertex>
Type Parameters
Name Description
TVertex

Vertex type.

TEdge

Edge type.

Remarks

Algorithm from Frontier Search, Korkf, Zhand, Thayer, Hohwald.

Constructors

| Improve this Doc View Source

BestFirstFrontierSearchAlgorithm(IAlgorithmComponent, IBidirectionalIncidenceGraph<TVertex, TEdge>, Func<TEdge, Double>, IDistanceRelaxer)

Initializes a new instance of the BestFirstFrontierSearchAlgorithm<TVertex, TEdge> class.

Declaration
public BestFirstFrontierSearchAlgorithm(IAlgorithmComponent host, IBidirectionalIncidenceGraph<TVertex, TEdge> visitedGraph, Func<TEdge, double> edgeWeights, IDistanceRelaxer distanceRelaxer)
Parameters
Type Name Description
IAlgorithmComponent host

Host to use if set, otherwise use this reference.

IBidirectionalIncidenceGraph<TVertex, TEdge> visitedGraph

Graph to visit.

System.Func<TEdge, System.Double> edgeWeights

Function that for a given edge provide its weight.

IDistanceRelaxer distanceRelaxer

Distance relaxer.

Exceptions
Type Condition
System.ArgumentNullException

visitedGraph is null.

System.ArgumentNullException

edgeWeights is null.

System.ArgumentNullException

distanceRelaxer is null.

| Improve this Doc View Source

BestFirstFrontierSearchAlgorithm(IBidirectionalIncidenceGraph<TVertex, TEdge>, Func<TEdge, Double>, IDistanceRelaxer)

Initializes a new instance of the BestFirstFrontierSearchAlgorithm<TVertex, TEdge> class.

Declaration
public BestFirstFrontierSearchAlgorithm(IBidirectionalIncidenceGraph<TVertex, TEdge> visitedGraph, Func<TEdge, double> edgeWeights, IDistanceRelaxer distanceRelaxer)
Parameters
Type Name Description
IBidirectionalIncidenceGraph<TVertex, TEdge> visitedGraph

Graph to visit.

System.Func<TEdge, System.Double> edgeWeights

Function that for a given edge provide its weight.

IDistanceRelaxer distanceRelaxer

Distance relaxer.

Exceptions
Type Condition
System.ArgumentNullException

visitedGraph is null.

System.ArgumentNullException

edgeWeights is null.

System.ArgumentNullException

distanceRelaxer is null.

Methods

| Improve this Doc View Source

InternalCompute()

Algorithm compute step.

Declaration
protected override void InternalCompute()
Overrides
QuikGraph.Algorithms.AlgorithmBase<QuikGraph.IBidirectionalIncidenceGraph<TVertex, TEdge>>.InternalCompute()

Events

| Improve this Doc View Source

TreeEdge

Fired when an edge is encountered.

Declaration
public event EdgeAction<TVertex, TEdge> TreeEdge
Event Type
Type Description
EdgeAction<TVertex, TEdge>

Implements

IAlgorithm<TGraph>
IComputation
IAlgorithmComponent
ITreeBuilderAlgorithm<TVertex, TEdge>

Extension Methods

GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, XmlReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, String, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeAndValidateFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String, Action<XmlWriter, TGraph>, Action<XmlWriter, TVertex>, Action<XmlWriter, TEdge>)
  • Improve this Doc
  • View Source
In This Article
Back to top QuikGraph