Exemple #1
0
 /// <summary>
 /// Creates a new id map.
 /// </summary>
 public UniqueIdMap(T defaultValue, int blockSize = 32)
 {
     _blocks       = new HugeDictionary <long, Block>();
     _blockSize    = blockSize;
     _defaultValue = defaultValue;
 }
Exemple #2
0
        private readonly HugeDictionary <long, LinkedListNode> _secondMap; // holds the second and beyond vertices for a node.

        /// <summary>
        /// Creates a new core node id map.
        /// </summary>
        public CoreNodeIdMap()
        {
            _firstMap  = new HugeDictionary <long, uint>();
            _secondMap = new HugeDictionary <long, LinkedListNode>();
        }