def load_profile(self, profile_name):
        """Load user profiles from file."""
        data = self.storage.get_user_profiles(profile_name)

        for x in data.get_user_views():
            self._graph.add_edge(int(x[0]), int(x[1]), {'weight': float(x[2])})
            self.all_records[int(x[1])] += 1

        return self._graph
def load_profile ( self , profile_name ) : data = self . storage . get_user_profiles ( profile_name ) for x in data . get_user_views ( ) : self . _graph . add_edge ( int ( x [ 0 ] ) , int ( x [ 1 ] ) , { 'weight' : float ( x [ 2 ] ) } ) self . all_records [ int ( x [ 1 ] ) ] += 1 return self . _graph
Load user profiles from file.