work with graph