replace S-Space with jGraphT.