bool isSibling(Graph graph, Node? leftNode, Node rightNode) { var leftParent = predecessorsOf(leftNode).first; return successorsOf(leftParent).contains(rightNode); }