def rp(self, X, depth=None, er=None, imdom=0, bf=0, src=None, stopkind=None,
           nocyc=False, ref=None):
	if depth is None:
	    depth = self.depth
	X = self.UniSet.idset_adapt(X)
	if src is not None:
	    # Creates an entire new guppy tree
	    # Mostly for testing purposes -
	    # can likely cause type problems generally
	    src = self.UniSet.idset_adapt(src)
	    self = self._root.guppy.Root().guppy.heapy.RefPat
	    self.View.root = tuple(src.nodes)
	    X = self.Use.idset(X.nodes)

	if er is None:
	    er = self.er # NEEDS to be loaded after new Classifier created
	if imdom:
	    relimg = lambda X:X.imdom
        elif ref is not None:
            if ref == 'gc':
                relimg = lambda X:X.referrers_gc
            elif ref == 'gcx':
                relimg = (lambda x:x.referrers_gc
                          - self._root.guppy.sets.ImmNodeSet
                          - self._parent.heapyc.NodeGraph
                          - self.View.ObservationList)
            elif ref == 'imdom':
                relimg = lambda X:X.imdom
            elif callable(ref):
                relimg = ref
            else:
                raise ValueError, \
 "ref should be 'gc', 'gcx', 'imdom', or a callable"
	else:
	    relimg = lambda X:X.referrers
	if stopkind is None:
	    stopkind = self.stopkind
	rp = ReferencePattern(self, X, depth, er, relimg, bf, stopkind, nocyc)
	return rp
rp(X, depth=None, er=None, imdom=0, bf=0, src=None, stopkind=None, nocyc=False, ref=None)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/RefPat.py/_GLUECLAMP_.rp