def _unique_id ( self , prefix ) : _id = self . _id_gen self . _id_gen += 1 return prefix + str ( _id )
how to create an identifier python
Generate a unique ( within the graph ) identifer internal to graph generation .
def _unique_id(self, prefix):
        """
        Generate a unique (within the graph) identifer
        internal to graph generation.
        """
        _id = self._id_gen
        self._id_gen += 1
        return prefix + str(_id)