Delegate Statics.SearchCost<TNode, TNumeric>
Computes the cost of moving from the current node to a specific neighbor.
Namespace: Towel
Assembly: Towel.dll
Syntax
public delegate TNumeric SearchCost<TNode, TNumeric>(TNode current, TNode neighbor);
Parameters
Type | Name | Description |
---|---|---|
TNode | current | The current (starting) node. |
TNode | neighbor | The node to compute the cost of movign to. |
Returns
Type | Description |
---|---|
TNumeric | The computed cost value of movign from current to neighbor. |
Type Parameters
Name | Description |
---|---|
TNode | The node type of the graph being searched. |
TNumeric | The numeric to use when performing calculations. |