Specifies how to use the direction of the edges. For
“out
”, the sorting order ensures that each node comes before
all nodes to which it has edges, so nodes with no incoming edges go first.
For “in
”, it is quite the opposite: each node comes before all
nodes from which it receives edges. Nodes with no outgoing edges go first.