Top "Networkx" questions

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

how to draw multigraph in networkx using matplotlib or graphviz

when I pass multigraph numpy adjacency matrix to networkx (using from_numpy_matrix function) and then try to draw the …

python-2.7 networkx
Method to save networkx graph to json graph?

Seems like there should be a method in networkx to export the json graph format, but I don't see it. …

python json graph networkx
Plotting the degree distribution of a graph using nx.degree_histogram

I've tried to use the following code to plot the degree distribution of the networkx.DiGraph G: def plot_degree_…

python matplotlib histogram networkx directed-graph
Draw graph in NetworkX

I'm trying to draw any graph in NetworkX, but get nothing, not even errors: import networkx as nx import matplotlib.…

python matplotlib ipython ipython-notebook networkx
NetworkX: how to add weights to an existing G.edges()?

Given any graph G created in NetworkX, I want to be able to assign some weights to G.edges() after …

python algorithm graph networkx edges
Color a particular node in Networkx and Graphviz

I am writing a program to plot a graph from a distance matrix. It is working fine. Now I want …

graph numpy graphviz networkx graph-visualization
'Graph' object has no attribute 'nodes_iter' in networkx module python

I have the below function in python2.7 using networkx module which produces the error. for H in networkx.connected_component_…

python networkx
How can I get the number of nodes of a Neo4j graph database from Python?

I'm trying to get the number of nodes of a Neo4j graph database using Python, but I don't find …

python neo4j networkx
Load nodes with attributes and edges from DataFrame to NetworkX

I am new using Python for working with graphs: NetworkX. Until now I have used Gephi. There the standard steps (…

python pandas graph networkx