EUREKA! Algorithm works on example graph.