예제 #1
0
if not lookahead and type != 'all':
    print 'Error: third argument missing, input sphere lookahead (radius minus one)! lookahead 0 (zero) equals degree...'
    exit(-1)

# cache size in 2KB pages (?)
cache_size = 2**18

print 'opening BigGraph ' + filename
graph = BigGraph(filename, cache_size)


if type == 'link' or type == 'node' :
    
    print 'dropping index with remove_parameter_cache() %s lookahead %d' % (type, lookahead) 
    graph.remove_parameter_cache('%ssphere%d' % (type, lookahead) )
    
elif type == 'all':
    
    #for lookahead in [1,2,3]:
    for lookahead in [1, 2]:

        type = 'node'
        print 'dropping index with remove_parameter_cache() %s lookahead %d' % (type, lookahead)
        graph.remove_parameter_cache('%ssphere%d' % (type, lookahead) )

        type = 'link'        
        print 'dropping index with remove_parameter_cache() %s lookahead %d' % (type, lookahead)
        graph.remove_parameter_cache('%ssphere%d' % (type, lookahead) )
            
else:
예제 #2
0
#!/usr/bin/python
'''
Created on Aug 1, 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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('seen_degree')



if __name__ == '__main__':
    pass
예제 #3
0
#!/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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('triangles')

if __name__ == '__main__':
    pass
예제 #4
0
#!/usr/bin/python
'''
Created on Jul 30, 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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('unseen_triangles')

if __name__ == '__main__':
    pass
예제 #5
0
#!/usr/bin/python
'''
Created on Jun 29, 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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('clustering')

if __name__ == '__main__':
    pass
예제 #6
0
#!/usr/bin/python
'''
Created on Jun 29, 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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('knn')



if __name__ == '__main__':
    pass


예제 #7
0
#!/usr/bin/python
'''
Created on Jun 29, 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!'

print 'opening BigGraph ' + filename
graph = BigGraph(filename)

print 'dropping index with remove_parameter_cache()'
graph.remove_parameter_cache('shell')

if __name__ == '__main__':
    pass