Edgelist creation algo for staticgraph changed.

All the relevant modules have been modified correctly, including testing modules