parameters: (self)
docstring: Check the workflow topology
docstring_summary: Check the workflow topology
docstring_tokens: Check the workflow topology
function: def check_topological(self):
          """
          Check the workflow topology
          """
          standard = [
              operation_unit.OpGenerateDict,
              operation_unit.OpTerm2ID,
              operation_unit.OpPartition,
              operation_unit.OpWriteData
              ]
          control = [type(op) for op in self.ops]
          intersec = list(set(standard) & set(control))
          intersec.sort(key=standard.index)
          for i, op in enumerate(self.ops):
              if not isinstance(op, intersec[i]):
                  raise Exception("Wrong workflow topology, please check.")
function_tokens: def check_topological ( self ) : standard = [ operation_unit . OpGenerateDict , operation_unit . OpTerm2ID , operation_unit . OpPartition , operation_unit . OpWriteData ] control = [ type ( op ) for op in self . ops ] intersec = list ( set ( standard ) & set ( control ) ) intersec . sort ( key = standard . index ) for i , op in enumerate ( self . ops ) : if not isinstance ( op , intersec [ i ] ) : raise Exception ( "Wrong workflow topology, please check." )