add methods to interface with graph