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