Working implementation that avoids reentry via node-java.
Correct the direction of the edges.
Add vertex/edge count tests.