getLeftSibling method
Implementation
Node? getLeftSibling(Graph graph, Node node) {
if (!hasLeftSibling(graph, node)) {
return null;
} else {
var parent = predecessorsOf(node).first;
var children = successorsOf(parent);
var nodeIndex = children.indexOf(node);
return children[nodeIndex - 1];
}
}