Interactive Network Visualization in Python with NetworkX and PyQt5 Tutorial

Unfortunately, there is no widely accepted, ready to use, standard way to interactively visualize networks in python. The following post shows yet another attempt to build an ad-hoc app.

Sonia Kopel

My boss came to me the other day with a new type of project. This time we would not be doing our usual predictive modeling in R, but instead we would be solving a graph theory problem… and we would be doing it in Python.

Our end goal was to create a visualization of a network that a user could click on that would do the following things: display immediate subgraph of a selected node, display shortest path between two selected nodes, and display most likely path between two selected nodes. We decided the best approach would be to start with a small test network, and set up a graphical system that would visualize the network and allow for user interactivity.

The test network featuring my boss’s daily movements was a .CSV and is shown below:

Networks network

The origin and dest columns represent the nodes (places my boss goes) connected by…

View original post 1,337 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s