(self, name)
return name in names
Check if name is already used for graph inputs/outputs or for nodes
        inputs/outputs
Check if name is already used for graph inputs/outputs or for nodes
        inputs/outputs
Check if name is already used for graph inputs / outputs or for nodes inputs / outputs
def has_edge_name(self, name):  # type: (Text) -> bool
        '''
        Check if name is already used for graph inputs/outputs or for nodes
        inputs/outputs
        '''
        names = set()
        for input in self.inputs:
            names.add(input[0])
        for output in self.outputs:
            names.add(output[0])
        for node in self.nodes:
            names.update(node.inputs)
            names.update(node.outputs)
        return name in names
def has_edge_name ( self , name ) : # type: (Text) -> bool names = set ( ) for input in self . inputs : names . add ( input [ 0 ] ) for output in self . outputs : names . add ( output [ 0 ] ) for node in self . nodes : names . update ( node . inputs ) names . update ( node . outputs ) return name in names