move compound_graph path stuff into own files and add deprecation comments