LinkTwoWay

Bases: glue.core.link_helpers.LinkCollection

Return 2 links that connect input ComponentIDs in both directions

Parameters:
  • cid1 – First ComponentID to link
  • cid2 – Second ComponentID to link
  • forwards – Function which maps cid1 to cid2 (e.g. cid2=f(cid1))
  • backwards – Function which maps cid2 to cid1 (e.g. cid1=f(cid2))
Returns:

Two ComponentLink instances, specifying the link in each direction