docs: def mechanism_indices(self, direction):
          """The indices of nodes in the mechanism system."""
          return {
              Direction.CAUSE: self.effect_indices,
              Direction.EFFECT: self.cause_indices
          }[direction]