Reputation: 7245
I created a directed graph using the networkx
package.
G = nx.DiGraph()
In order to compute the degree distribution I just do:
x = list(nx.degree(G).values())
counts, bin_edges = np.histogram(x)
How can I get the in_degree
and out_degree
distributions?
Upvotes: 0
Views: 2711