Remove unused lines
Update code to use a proper edge list format