Show / Hide Table of Contents

Interface ITraversableNode<T>

The interface needed for any nodes in a graph to be searched through via any the graph solvers in the PathFinder.Solvers.Generic namespace.

Namespace: PathFinder.Graphs
Assembly: PathFinder.dll
Syntax
public interface ITraversableNode<T> : IEquatable<T>
Type Parameters
Name Description
T

Methods

| Improve this Doc View Source

EstimatedCostTo(T)

Calculate the estimated cost to another node.

Declaration
double EstimatedCostTo(T other)
Parameters
Type Name Description
T other

The target node to move to.

Returns
Type Description
System.Double

The best case (cheapest) cost to get from one node to another.

| Improve this Doc View Source

NeighborNodes()

Get nodes that are accessible from this node.

Declaration
IEnumerable<T> NeighborNodes()
Returns
Type Description
IEnumerable<T>
| Improve this Doc View Source

RealCostTo(T)

Calculate the real cost to another node.

Declaration
double RealCostTo(T other)
Parameters
Type Name Description
T other

The target node to move to.

Returns
Type Description
System.Double

The actual cost to move from one node to another.

Remarks

Should return less than 0 if not possible to move to node.

  • Improve this Doc
  • View Source
☀
☾
Back to top Generated by DocFX