add Makefile and adjust output format
This commit is contained in:
parent
26adaf464e
commit
fdb0464949
2 changed files with 7 additions and 2 deletions
5
Makefile
Normal file
5
Makefile
Normal file
|
@ -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];
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
nodes[i] = "Node " + i;
|
||||
nodes[i] = Integer.toString(i);
|
||||
}
|
||||
|
||||
/*adjMatrix[0][1] = true;
|
||||
|
@ -55,7 +55,7 @@ public class TestCycles {
|
|||
for (int j = 0; j < cycle.size(); j++) {
|
||||
String node = (String) cycle.get(j);
|
||||
if (j < cycle.size() - 1) {
|
||||
System.out.print(node + " -> ");
|
||||
System.out.print(node + " ");
|
||||
} else {
|
||||
System.out.print(node);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue