public IndexedAStarPathFinder(IndexedGraph <N> graph, bool calculateMetrics) { this._graph = graph; this._nodeRecords = new NodeRecord <N> [graph.GetNodeCount()]; this._openList = new NodeBinaryHeap <NodeRecord <N> >(); if (calculateMetrics) { this.metrics = new Metrics(); } }