allGraphs splits entire database into graphs