Both L(2,1)_cycles.ipynb and L(2,1)_trees.ipynb need the following package installed through terminal/command window before running:
pip install networkx
In addition, the file L(2,1)_trees.ipynb was originally ran on Ubuntu with the following dependencies:
sudo apt-get install graphviz