I am trying to use the networkx package to work on a directed graph. The file was read successfully but a lot of the functions do not give any output for it.
import networkx as nx
MyGraph=nx.DiGraph()
MyGraph=nx.read_gml("celegansneural.gml")
MyGraph.degree()
I get the following output:
DiDegreeView({})
similarly for MyGraph.edges()
the output I get is []
How do I work with the file?