From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Networks

Networks

Networks and graphs are essentially mathematical objects that we can use to describe relationships or connections, our so-called edges, between items, which are usually referred to as nodes. You're probably familiar with visualizations of social graphs, road networks, airline connections, etc. These are the little charts that you get with a bunch of dots or a bunch of circles connected by lines, that's essentially what a network or a graph is. Bokeh actually has very good support visualizing networks, if you describe them using NetworkX, which is one of the leading packages for network analysis in Python. In fact, Bokeh provides us with the function to convert a NetworkX graph directly into a figure object that you can manipulate and use and display directly. To do this, all you have to do is call the from underscore networkX function with the networkX object that you want to use, and the layout algorithm that you want to use. Layout algorithm is essentially the algorithm that…

Contents