예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)