Switch to quad tree for performance
Unify into single EdgeTracker. Performance improvement for large graph parsing.