/// <summary> /// Adds the specified node. /// </summary> /// <param name="node">The node.</param> /// <exception cref="System.InvalidOperationException">Invalid Heuristic!</exception> public override void Add(Node node) { if (Heuristic == null) { throw new InvalidOperationException("Invalid Heuristic!"); } var h = Heuristic.Compute(node.State); Add(node, h); }