def loadGraph(fname): sys.stderr.write('Parsing {0}. '.format(fname)) sys.stderr.flush() (g, ga) = parse_gc_graph.parseGCEdgeFile(fname) g = parse_gc_graph.toSinglegraph(g) sys.stderr.write('Done loading graph.') return (g, ga)
def loadGraph(fname): sys.stderr.write ('Parsing {0}. '.format(fname)) sys.stderr.flush() (g, ga) = parse_gc_graph.parseGCEdgeFile(fname) g = parse_gc_graph.toSinglegraph(g) sys.stderr.write('Done loading graph.') return (g, ga)
def loadGraph(fname): sys.stdout.write('Parsing {0}. '.format(fname)) sys.stdout.flush() (g, ga) = parse_gc_graph.parseGCEdgeFile(fname) #sys.stdout.write('Converting to single graph. ') #sys.stdout.flush() g = parse_gc_graph.toSinglegraph(g) print 'Done loading graph.', return (g, ga)