Closed Libbum closed 6 years ago
Definitely a bug.
Graph [Node 0 (2), Node 1 (5), Node 2 (6), Node 3 (7), Node 4 (8), Node 5 (2), Node 6 (3), Node 7 (5)] [Edge 7->6 (2), Edge 7->0 (0), Edge 5->4 (0), Edge 5->2 (1), Edge 4->3 (1), Edge 4->0 (0), Edge 2->1 (1)]
id 4 is connected outward to both 0 and 3, as well as inward by 5. id 3 has no outward connection. So somewhere we miss the 3->0 or 0->3 and instead place it on 4.
No, the tree is fine, it's just not as straightforward in this case. colourGraph
is not doing the correct red-black solution. Splitting like we do now is not correct.
Unsure if this is just a case where LDM is no good or the implementation is bad.