A graph implementation using an adjacency matrix representation