Example #1
0
def do_load_graph_wiki():
    print "[PB]: Loading Wiki graph"
    if os.path.exists(data_w_path):
        print "[PB]: Loading graph from local path"
        sg = turicreate.load_sgraph(data_w_path)
    else:
        sg = turicreate.load_sgraph(url)
        sg.save(data_w_path)
    return sg
Example #2
0
def do_load_graph_wiki():
    print "Loading Wiki graph"
    if os.path.exists(data_w_path):
        print "Loading graph from local path"
        sg = turicreate.load_sgraph(data_w_path)
    else:
        sg = turicreate.load_sgraph(url)
        sg.save(data_w_path)

    print sg.summary()
    sys.stdout.flush()

    time.sleep(5)
    return sg
 def setUpClass(cls):
     url = dataset_server + "p2p-Gnutella04.txt.gz"
     cls.graph = tc.load_sgraph(url, format='snap')