I am using the python-igraph package to create a graph from my edges stored in a file. I use Graph.Read_Edgelist to read edges and create the desired graph. When I need to get the number of vertices in my graph, I use the Graph.vcount () function, which should return the number of vertices, which is not the case for me. For such a file:
1 2 5 300
This function returns 301, which is not what I'm looking for! I need it to return 4, which is the actual number of vertices of my graph. Any idea what I can do to solve this?
source share