Technical requirements
In this chapter, we will be using the Python libraries NetworkX, pandas, scikit-learn, and Karate Club. Other than Karate Club, these libraries should be installed by now, so they should be ready for your use. The steps for installing Karate Club are included in this chapter. If other libraries 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 the draw_graph()
function, which uses both NetworkX and scikit-network
. You will need that code anytime that we do network visualization. Keep it handy!
All the code is available from the GitHub repo: https://github.com/PacktPublishing/Network-Science-with-Python.