Technical requirements
In this chapter, we will be using the Python libraries NetworkX, pandas, and scikit-learn. 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 this:
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. Keep it handy!
The code for this chapter is on GitHub: https://github.com/PacktPublishing/Network-Science-with-Python.