Overriding Graph get() method.