Prova su Google cercando "free java graph library" e vedrai che ce ne sono...