Moved graph-related classes to graph package