more graph stuff, figure out node ordering!!