Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/p/y/pystream-HEAD/sandbox/decomposerenames.py   pystream(Download)
def partitionGraph(G):
	u = UnionFind()
	for node, next in G.iteritems():
		u.union(node, *next)
 
			G[k].add(v)
			B[v].add(k)
			u.union(k, v)
 
 
	live = set()
	for a in al:
		u.union(*a.a)
		u.union(*a.b)
		live.update(a.a)

src/p/y/pystream-HEAD/bin/translator/dataflowtransform/newpoolanalysis/prepass.py   pystream(Download)
		self.merged = UnionFind()
		for group in groups.itervalues():
			self.merged.union(*group)
			# TODO only live fields are "compatible"?
			self.compatible.union(*group)