[java] Java: how to represent graphs?