I have (x,y) coordinates and edge connections in a csv file. I want to plot my graph using the (x,y) coordinates and edge connections using csv import. Here Iam attaching the sample csv table format and my expected output?


You can start by using this to make the inputs from your .csv :
import csv
from ast import literal_eval
with open("file.csv", "r") as f:
reader = csv.DictReader(f, delimiter=",") # <-- adjust the sep if needed
rows = list(reader)
points = [literal_eval(row["xy"]) for row in rows]
edges = [(literal_eval(row["v1v2"]) + (int(row["w"]),)) for row in rows]
Then you can use/readapt @Sparky05's answer.
Output :