Add docstrings.
Add graph __eq__ method with tests.