Saving 4 bytes on each original edge. Simplifying handling of original
edge data
Refactoring InputEdge type and removing dead code
Minor refactoring/reordering