add Makefile and adjust output format

main
josch 12 years ago
parent 26adaf464e
commit fdb0464949

@ -0,0 +1,5 @@
all:
javac de/normalisiert/utils/graphs/TestCycles.java
clean:
rm -f de/normalisiert/utils/graphs/*.class

@ -20,7 +20,7 @@ public class TestCycles {
boolean adjMatrix[][] = new boolean[10][10]; boolean adjMatrix[][] = new boolean[10][10];
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
nodes[i] = "Node " + i; nodes[i] = Integer.toString(i);
} }
/*adjMatrix[0][1] = true; /*adjMatrix[0][1] = true;
@ -55,7 +55,7 @@ public class TestCycles {
for (int j = 0; j < cycle.size(); j++) { for (int j = 0; j < cycle.size(); j++) {
String node = (String) cycle.get(j); String node = (String) cycle.get(j);
if (j < cycle.size() - 1) { if (j < cycle.size() - 1) {
System.out.print(node + " -> "); System.out.print(node + " ");
} else { } else {
System.out.print(node); System.out.print(node);
} }

Loading…
Cancel
Save