示例#1
0
 /// <summary>
 /// Builds the neighbours set.
 /// </summary>
 /// <param name="neighbours"></param>
 /// <returns></returns>
 private HashSet<uint> BuildNeighboursSet(KeyValuePair<uint, CHEdgeData>[] neighbours)
 {
     neighbours = neighbours.RemoveInformativeEdges();
     var neighboursSet = new HashSet<uint>();
     foreach (KeyValuePair<uint, CHEdgeData> neighbour in neighbours)
     {
         neighboursSet.Add(neighbour.Key);
     }
     return neighboursSet;
 }