Technical requirements
In this chapter, we will mostly be using the Python libraries NetworkX and pandas. These libraries should be installed by now, so they should be ready for your use. If they are not installed, you can install Python libraries with the following:
pip install <library name>
For instance, to install NetworkX, you would do the following:
pip install networkx
In Chapter 4, we also introduced a draw_graph()
function that uses both NetworkX and scikit-network
. You will need that code any time that we do network visualization. You will need it for this chapter and most chapters in this book.
The code is available on GitHub: https://github.com/PacktPublishing/Network-Science-with-Python.