Graph

Why not make edge_list a set from the beginning? You'll save on memory for sure.