bap/utrecht_custom.py
def load(self, gpickle_file, bases_file):
        """Loads the data from the gpickle file and from the bases.txt file.
        """
        # Load graph (gpickle file)
        self.G = nx.read_gpickle(gpickle_file)
        self.V = list(self.G.nodes)
        
        # Load bases
        self.B = []
        with open(bases_file, 'r') as f:
            for line in f.readlines():
                self.B.append(eval(line.strip('\n')))
        self.B = [self.V.index(i) for i in self.B]
Loads the data from the gpickle file and from the bases.txt file.
        
Loads the data from the gpickle file and from the bases.txt file.
Loads the data from the gpickle file and from the bases . txt file .
def load(self, gpickle_file, bases_file):
        self.G = nx.read_gpickle(gpickle_file)
        self.V = list(self.G.nodes)
        self.B = []
        with open(bases_file, 'r') as f:
            for line in f.readlines():
                self.B.append(eval(line.strip('\n')))
        self.B = [self.V.index(i) for i in self.B]
def load ( self , gpickle_file , bases_file ) : self . G = nx . read_gpickle ( gpickle_file ) self . V = list ( self . G . nodes ) self . B = [ ] with open ( bases_file , 'r' ) as f : for line in f . readlines ( ) : self . B . append ( eval ( line . strip ( '\n' ) ) ) self . B = [ self . V . index ( i ) for i in self . B ]
Loads the data from the gpickle file and from the bases.txt file.
Loads the data from the gpickle file and from the bases . txt file .
"""Loads the data from the gpickle file and from the bases.txt file.
        """ # Load graph (gpickle file) # Load bases
self
gpickle_file
bases_file