Beispiel #1
0
        private void Swap(ref ActiveNodes an1, ref ActiveNodes an2)
        {
            ActiveNodes tmp = an1;

            an1 = an2;
            an2 = tmp;
        }
Beispiel #2
0
 public Trie(int topl)
 {
     m_AN1               = new ActiveNodes();
     m_AN2               = new ActiveNodes();
     BFS_Q               = new Queue <int>();
     m_EntitiesUpdate    = new List <string>();
     m_stateIds          = new List <int>();
     m_DupChecker        = new Dictionary <string, bool>();
     m_visitActiveNodes  = new Dictionary <int, bool>();
     m_acEntityIds       = new List <int>();
     m_descendantsUpdate = new List <List <int> >();
     m_descendants       = new Dictionary <int, int[]>();
     m_topL              = topl;
 }