Esempio n. 1
0
 /// <summary>
 /// Returns the edges in the graph of the type given, as set
 /// </summary>
 public static Dictionary<IEdge, SetValueType> Edges(IGraph graph, EdgeType edgeType, int threadId)
 {
     Dictionary<IEdge, SetValueType> edgesSet = new Dictionary<IEdge, SetValueType>();
     foreach(IEdge edge in graph.GetCompatibleEdges(edgeType))
     {
         edgesSet[edge] = null;
     }
     return edgesSet;
 }
Esempio n. 2
0
 public static Dictionary<IEdge, SetValueType> Edges(IGraph graph, EdgeType edgeType, IActionExecutionEnvironment actionEnv, int threadId)
 {
     Dictionary<IEdge, SetValueType> edgesSet = new Dictionary<IEdge, SetValueType>();
     foreach(IEdge edge in graph.GetCompatibleEdges(edgeType))
     {
         ++actionEnv.PerformanceInfo.SearchStepsPerThread[threadId];
         edgesSet[edge] = null;
     }
     return edgesSet;
 }