Merged graph.sql and graph_invariant.sql into a single file