Skip to content

Commit

Permalink
Tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
vigna committed Feb 20, 2021
1 parent b82ffd4 commit de93f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public Integer get()
d.addEdge(4, 1);

final SuccinctIntUndirectedGraph s = new SuccinctIntUndirectedGraph(d);
assertEquals(5, d.iterables().vertexCount());
assertEquals(7, d.iterables().edgeCount());

assertEquals(2, s.outDegreeOf(0));
assertEquals(3, s.outDegreeOf(1));
assertEquals(2, s.outDegreeOf(2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public Integer get()
d.addEdge(4, 1);

final SuccinctUndirectedGraph s = new SuccinctUndirectedGraph(d);
assertEquals(5, d.iterables().vertexCount());
assertEquals(7, d.iterables().edgeCount());

assertEquals(2, s.outDegreeOf(0));
assertEquals(3, s.outDegreeOf(1));
assertEquals(2, s.outDegreeOf(2));
Expand Down

0 comments on commit de93f41

Please sign in to comment.