Python-igraph Number Of Vertices
I am using python-igraph package to create a graph from my edges stored in a file. I use Graph.Read_Edgelist to read the edges and create my desired graph. When I need to get the n
Solution 1:
Solved my problem using the following function instead of Graph.Read_Edgelist:
Graph.Read_Ncol(netFile, names=True, weights="if_present", directed=True)
By setting "name=True" the function considers the nodes numbers as their name and solves the vcount problem.
Post a Comment for "Python-igraph Number Of Vertices"