- can we make this const?
- auto is a bit of an overkill here. Can we use EdgeID as a type here?