Algorithms for the JUNG project