Unite the separate `in-edges` implementations

Too much code duplication.