depgraph: Adding method to get incoming edges
terraform: Deterministric and correct ordering for deposed nodes