public void Reset() { SparseQueue.Clear(false); SparseNodes.Clear(); SparseNodePool.ReturnAll(); max_graph_distance = float.MinValue; }
/// <summary> /// reset internal data structures/etc /// </summary> public void Reset() { if ( SparseNodes != null ) { SparseQueue.Clear(false); SparseNodes.Clear(); SparseNodePool.ReturnAll(); } else { DenseQueue.Clear(false); Array.Clear(DenseNodes, 0, DenseNodes.Length); } Seeds = new List<int>(); max_value = float.MinValue; }