MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / find

Method find

SLiCAP/schematic/connectivity.py:36–40  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

34 self._p[x] = x
35
36 def find(self, x) -> tuple:
37 self._ensure(x)
38 if self._p[x] != x:
39 self._p[x] = self.find(self._p[x])
40 return self._p[x]
41
42 def union(self, a, b):
43 ra, rb = self.find(a), self.find(b)

Callers 5

unionMethod · 0.95
resolve_netsFunction · 0.80
_sync_port_net_namesMethod · 0.80
_wires_on_same_netMethod · 0.80
_load_bundleMethod · 0.80

Calls 1

_ensureMethod · 0.95

Tested by

no test coverage detected