code: def relations_used(self):
          
          g = self.get_graph()
          types = set()
          for (x,y,d) in g.edges(data=True):
              types.add(d['pred'])
          return list(types)
docs: Return list of all relations used to connect edges