public void RouteEdges_RandomGraph() { //DisplayGeometryGraph.SetShowFunctions(); Random random = new Random(1); int ntest = 100; for (int i = 0; i < ntest; i++) { int nodeCount = 5 + random.Next(10); int edgeCount = 10 + random.Next(20); GeometryGraph graph = GraphGenerator.GenerateRandomGraph(nodeCount, edgeCount, random); AddRootCluster(graph); SetRandomNodeShapes(graph, random); Layout(graph, random); //DisplayGeometryGraph.ShowGraph(graph); RouteEdges(graph, 5 * random.NextDouble()); //DisplayGeometryGraph.ShowGraph(graph); } }