Why don't you use JavaGraph?