Added unordered_map to track edge info offset