Skip to content

Commit

Permalink
Merge branch 'hotfix/vertexDeleteFix'
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpinia committed Jan 2, 2021
2 parents 20fe278 + 727b985 commit 0c5aa86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void addNeighbour(int neighbour) {

public void deleteNeighbour(int neighbour) {
if (neighbours.contains(neighbour)) {
neighbours.remove(neighbour);
neighbours.remove(Integer.valueOf(neighbour));
}
}

Expand All @@ -61,7 +61,7 @@ public void addChild(int child) {

public void deleteChild(int child) {
if (directed && childs.contains(child)) {
childs.remove(child);
childs.remove(Integer.valueOf(child));
}
}

Expand Down

0 comments on commit 0c5aa86

Please sign in to comment.