Skip to content

Commit

Permalink
#35 issue found and fixed
Browse files Browse the repository at this point in the history
leftover issue when converting to use arrays
  • Loading branch information
MuellMark committed Jul 12, 2023
1 parent 651c558 commit 4fb2fd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Java Code/edgeStorageArrays.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void printAdjMatrix(){
String tempStr = "";
for(int j=1;j<=size();j++){
int found = 0;
for(int k =0;k<edges[i][1].length;k++){
for(int k =1;k<edges[i][1].length;k++){
if(edges[i][1][k]==j) found=1;
}
tempStr+= " "+found+",";
Expand Down
24 changes: 12 additions & 12 deletions Java Code/generateGraphs.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ public static void main(String[]args){

//Test, will be deleted
//System.out.println("---------------------------------------");
edgeStorageArrays testCir = new edgeStorageArrays(5);
testCir.addPair(1, 2);
testCir.addPair(2, 3);
testCir.addPair(3, 4);
testCir.addPair(4, 5);
testCir.addPair(5, 1);
testCir.addPair(1, 3);
testCir.addPair(1, 4);
testCir.addPair(2, 4);
testCir.addPair(2, 5);
testCir.addPair(3, 5);
// testCir.print();
// edgeStorageArrays testCir = new edgeStorageArrays(5);
// testCir.addPair(1, 2);
// testCir.addPair(2, 3);
// testCir.addPair(3, 4);
// testCir.addPair(4, 5);
// testCir.addPair(5, 1);
// testCir.addPair(1, 3);
// testCir.addPair(1, 4);
// testCir.addPair(2, 4);
// testCir.addPair(2, 5);
// testCir.addPair(3, 5);
// // testCir.print();

// System.out.println(testCir.isCirculantLabeling());
}
Expand Down

0 comments on commit 4fb2fd5

Please sign in to comment.