Implemented mostly correct node connection ordering, but there's still a bug with finding left/right split event on an edge