private static void GenerateRandomWithCycle(int i, int j, out Graph g, out Graph h) { // random graph and a cycle g = GraphFactory.GenerateRandom(i, 0.4, 0); h = GraphFactory.GenerateCycle(j).Permute(1); Export("Random_And_Cycle", g, h); }
public void EvenCycle() => TestGraph(GraphFactory.GenerateCycle(4), 2, 3);
public void OddCycle() => TestGraph(GraphFactory.GenerateCycle(5), 2);