Refactored graph class.

Refactored graph class to use adjacency lists and standard iterators from the STL. Tests in test_grafo.cpp continue to pass.