示例#1
0
 public void Reset()
 {
     SparseQueue.Clear(false);
     SparseNodes.Clear();
     SparseNodePool.ReturnAll();
     max_graph_distance = float.MinValue;
 }
示例#2
0
        /// <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;
        }