switched back: edges use node objects again, not node ids. There was no need of switching, while this performs probably slightly faster