code: def remove_random_edge(self):
          
          u, v, k = self.get_random_edge()
          log.log(5, 'removing %s, %s (%s)', u, v, k)
          self.graph.remove_edge(u, v, k)
docs: Remove a random in-edge from the node with the lowest in/out degree ratio.