Create edges from points csv

I found this example. But I don’t want to create a new list of edges using points list.

What is the right syntax for this?

edges.append((int(a[1:]), int(b[1:])))