direct graph away from the root