/// <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; }
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; }