code: def find_cycle_capacity(self, cycle):
          '''
          API:
              find_cycle_capacity(self, cycle):
          Description:
              Finds capacity of the cycle input.
          Pre:
              (1) Arcs should have 'capacity' attribute.
          Input:
              cycle: a list representing a cycle
          Return:
              Returns an integer number representing capacity of cycle.
          '''
          index = 0
          k = len(cycle)
          capacity = self.get_edge_attr(cycle[k-1], cycle[0], 'capacity')
          while index<(k-1):
              i = cycle[index]
              j = cycle[index+1]
              capacity_ij = self.get_edge_attr(i, j, 'capacity')
              if capacity > capacity_ij:
                  capacity = capacity_ij
              index += 1
          return capacitf find_cycle_capacity(self, cycle):
          '''
          API:
              find_cycle_capacity(self, cycle):
          Description:
              Finds capacity of the cycle input.
          Pre:
              (1) Arcs should have 'capacity' attribute.
          Input:
              cycle: a list representing a cycle
          Return:
              Returns an integer number representing capacity of cycle.
          '''
          index = 0
          k = len(cycle)
          capacity = self.get_edge_attr(cycle[k-1], cycle[0], 'capacity')
          while index<(k-1):
              i = cycle[index]
              j = cycle[index+1]
              capacity_ij = self.get_edge_attr(i, j, 'capacity')
              if capacity > capacity_ij:
                  capacity = capacity_ij
              index += 1
          return capacity
docs: API:
              find_cycle_capacity(self, cycle):
          Description:
              Finds capacity of the cycle input.
          Pre:
              (1) Arcs should have 'capacity' attribute.
          Input:
              cycle: a list representing a cycle
          Return:
              Returns an integer number representing capacity of cycle.