Technical requirements
In this chapter, we will be using the Python libraries NetworkX and pandas. Both of 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 anytime that we do network visualization. Keep it handy!
You can find all of the code in this chapter in the GitHub repository: https://github.com/PacktPublishing/Network-Science-with-Python.