edgeList is now a list instead of tuples because tuples are immutable