MultiLink¶
-
class
glue.core.link_helpers.
MultiLink
(cids_left, cids_right, forwards=None, backwards=None)[source]¶ Bases:
glue.core.link_helpers.LinkCollection
Compute all the ComponentLinks to link groups of ComponentIDs
Parameters: - cids_left – first collection of ComponentIDs
- cids_right – second collection of ComponentIDs
- forwards – Function that maps
cids_left -> cids_right
. Assumed to have signaturecids_right = forwards(*cids_left)
, and assumed to return a tuple. If not provided, the relevant ComponentIDs will not be generated - backwards – The inverse function to forwards. If not provided, the relevant ComponentIDs will not be generated
Returns: a collection of
ComponentLink
objects.