#!/usr/bin/python ''' Created on Jul 27, 2010 @author: jose ''' from cloudlight import BigGraph import sys filename = len(sys.argv) > 1 and sys.argv[1] or None if not filename: print 'Error: first argument missing, input filename with BigGraph archive!' exit(-1) # cache size in 2KB pages (?) cache_size = 2**16 print 'opening BigGraph ' + filename graph = BigGraph(filename, cache_size) graph.debug = True print 'indexing with create_index_triangles()' graph.create_index_triangles()
#!/usr/bin/python ''' Created on Jun 7, 2010 @author: jose ''' #!/usr/bin/python from cloudlight import BigGraph import sys filename = len(sys.argv) > 1 and sys.argv[1] or None debug = True if not filename: print 'Error: first argument missing, input filename with BigGraph archive!' exit(-1) # cache size in 2KB pages (?) cache_size = 2**16 print 'opening BigGraph ' + filename graph = BigGraph(filename, cache_size) graph.debug = debug print 'indexing with create_index_kcores()' graph.create_index_kcores()
#!/usr/bin/python ''' Created on Oct 4, 2010 @author: jose ''' from cloudlight import BigGraph import sys if __name__ == '__main__': print 'Starting dump_snowball' filename = len(sys.argv) > 1 and sys.argv[1] or None if not filename: print 'Error: first argument missing, input filename with BigGraph archive!' exit(-1) outname = len(sys.argv) > 2 and sys.argv[2] or None if not outname: print 'Error: first argument missing, output filename with edgelist archive!' exit(-1) g = BigGraph(filename) g.debug = True g.save_snowball_edgelist_iter(outname)