graph propogation code in place, needs sanity check