Attempt 1 at fixing graph, faces don't work.
Fixed next edge detection problem, all tests pass now.