add getters and setters to Graph