INodeTSelf Interface

Represents a node of a graph.

Definition

Namespace: SimpleAIPlayer
Assembly: SimpleAIPlayer (in SimpleAIPlayer.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public interface INode<TSelf>
where TSelf : Object, INode<TSelf>

Type Parameters

TSelf
The type of the node.

Properties

Id The ID of the node. Two nodes with the same ID are considered equal.

Methods

GetEdges Gets the edges incident with this node. The entire graph doesn't need to be stored in memory but it can be dynamically generated instead.
Heuristic Heuristic function to estimate distances between this node an the other node. For IDA* to work properly, it needs to be admissible (optimistic), meaning heuristic(a,b) <= distance(a,b).

See Also