Python Implementation of Graph-Theoretic Concepts: Closed Neighbourhood and Distance Between Vertices