I've three csv files:
v.csv for vertex data, like this:
1
2
3
...
e.csv for edges:
1,2
2,4
2,24
3,1
...
and vcoor.csv for vertex coordinates:
23.4, 35.2
23.4, 40.3
...
I know how to construct a simple graph in Mathematica, but after importing edges by Import, I can't use them in Graph
v = Import["C:\\Users\\MST\\Desktop\\v.csv", "List"];
e = Import["C:\\Users\\MST\\Desktop\\e.csv", "Table"];
vcoor = Import["C:\\Users\\MST\\Desktop\\vcoor.csv", "Table"];
g = Graph[v, e, VertexCoordinates -> vcoor];

"CSV", not as"Table". Have you looked at whatelooks like after importing? Does it have a structure suitable forGraph? Did you look upGraphin the documentation to see what form of input it accepts? It must be an edge list, i.e. if you havee={{1,2},{3,4}}you must useUndirectedEdge @@@ e. – Szabolcs Mar 09 '16 at 09:08