def load_from_file(filename):
    '''
    Load a topology from filename and return it.
    '''
    t = None
    with open(filename, 'rU') as infile:
        tdata = infile.read()
        t = Topology.unserialize(tdata)
    return t
def load_from_file ( filename ) : t = None with open ( filename , 'rU' ) as infile : tdata = infile . read ( ) t = Topology . unserialize ( tdata ) return t
Load a topology from filename and return it.