[#18] EdgeWriter refactoring