public static int CountEdges( IGraph graph, EdgeType edgeType, IActionExecutionEnvironment actionEnv, int threadId )