Organized code, separated digraph class into separate files