drawing edges before nodes in a hierarchical graph