Skip to content

Commit

Permalink
Update UndirectedGraph.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bfdes committed May 8, 2023
1 parent 62bcc2e commit 76d4bd1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/in/bfdes/collections/UndirectedGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public void remove(Edge<V> edge) {
super.remove(edge.transpose());
}

@Override
public int size() {
return super.size() / 2;
}

public Iterable<V> neighbours(V vertex) {
return () -> new Iterator<>() {
private final Iterator<Edge<V>> edges = edges(vertex).iterator();
Expand Down

0 comments on commit 76d4bd1

Please sign in to comment.