Exemple #1
0
def test_timer(file):
  print "Running for file: " + file
  graph = graph_importer.graph_from_file(file)
  arbitrary_vertex = next(iter(graph))
  
  print "ifub"
  print algs.ifub(graph, arbitrary_vertex)

  print "bounding_diameters"
  print algs.bounding_diameters(graph)
Exemple #2
0
def test_big_graph():
  graph = graph_importer.graph_from_file(FACEBOOK_FILENAME)
  print "ifub"
  print algs.ifub(graph, 0)
  print "normal library"
  print nx.diameter(graph)