Added basic methods to the graph