adding base methods for easier manipulation of graph elements