Technical requirements
We will be using Jupyter Notebooks with Python 3.8 for all of our exercises. In the following code block, you can see a list of the Python libraries that will be installed for this chapter using pip
(for example, run pip install networkx==2.5
on the command line):
Jupyter==1.0.0 networkx==2.5 matplotlib==3.2.2 node2vec==0.3.3 karateclub==1.0.19 scikit-learn==0.24.0 pandas==1.1.3 numpy==1.19.2 tensorflow==2.4.1 neural-structured-learning==1.3.1 stellargraph==1.2.1
In the rest of this book, if not clearly stated, we will refer to nx
as the result of the import networkx as nx
Python command.
All code files relevant to this chapter are available at https://github.com/PacktPublishing/Graph-Machine-Learning/tree/main/Chapter04.