restructure again.
Use DAOs and POJOs.
Subclass POJOs to handle graph specific code