static void FindCircuit(int[] inputstream, int[] outputstream, int nodeCount, int maxNodes) { while (nodeCount <= maxNodes) { Circuit c = new Circuit(nodeCount); for (int i = 0; i < nodeCount; i++) { c.AddGate(); } IterateCircuit(c, 0, inputstream, outputstream); System.Console.WriteLine("nodes: {0} iterations: {1}", nodeCount, itercount); nodeCount++; itercount = 0; } }