Processing java path finder

You can easily do this in a double loop.

Yes - an edge is a connection between two nodes