Top "Networkx" questions

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

Find end nodes (leaf nodes) in radial (tree) networkx graph

Given the following graph, is there a convenient way to get only the end nodes? By end nodes I mean …

python graph-theory networkx
How to extract random nodes from networkx graph?

How to extract random nodes from networkx graph? I have a map in the form of a networkx graph and …

python random nodes networkx
Saving a matplotlib/networkx figure without margins

When I draw a figure using matplotlib how do I save it without extra margins? Usually when I save it …

python matplotlib networkx
Finding Successors of Successors in a Directed Graph in NetworkX

I'm working on some code for a directed graph in NetworkX, and have hit a block that's likely the result …

python networkx directed-graph
Specified edge lengths on networkx/igraph (Python)

I wanted to visualize a network with the data I have and would like to graph them with specific edge …

python graphviz networkx igraph
How to generate a fully connected subgraph from node list using python's networkx module

I need to generate a fully connected subgraph with networkx, starting from the list of nodes I want to connect. …

python networkx
Interface between networkx and igraph

I've been working with networkx for quite some time now and it's been serving my purposes quite well with minimal …

python networkx igraph
how to draw communities with networkx

How can I draw a graph with it's communities using python networkx like this image : image url

python graph networkx
How to only keep nodes in networkx-graph with 2+ outgoing edges or 0 outgoing edges?

I have Directed Graph in networkx. I want to only keep those nodes which have two or more than two …

python networkx
Drawing a large weighted network in networkx based on thickness?

How do I draw a weighted network of N>1000 nodes in networkx by thickness? If I have a .csv …

networkx thickness