Add edge ids

This will be important especially in irstv/gdms-topology when calculating edge betweenness.

[I should add unit tests later.]