parameters: (self, component)
return_statement: return self.get_upstream_seg_nums(seg) == [seg]
docstring: Given a list of unsigned segment numbers, this function returns whether the component is
          a completed circular replicon.
docstring_summary: Given a list of unsigned segment numbers, this function returns whether the component is
          a completed circular replicon.
docstring_tokens: Given a list of unsigned segment numbers this function returns whether the component is a completed circular replicon .
function: def is_component_complete(self, component):
          """
          Given a list of unsigned segment numbers, this function returns whether the component is
          a completed circular replicon.
          """
          if len(component) != 1:
              return False
          seg = component[0]
          if self.get_downstream_seg_nums(seg) != [seg]:
              return False
          return self.get_upstream_seg_nums(seg) == [seg]
function_tokens: def is_component_complete ( self , component ) : if len ( component ) != 1 : return False seg = component [ 0 ] if self . get_downstream_seg_nums ( seg ) != [ seg ] : return False return self . get_upstream_seg_nums ( seg ) == [ seg ]