Skip to content
  • Tiago Peixoto's avatar
    Implement lazy loading of graphs · de0a0a8e
    Tiago Peixoto authored
    Graphs can now be loaded "lazily" with the lazy_load() function, which
    works just like load(), but doesn't actually load the graph, which is
    delayed until the graph is accessed for the first time, e.g.
    
        import graph_tool
    
        g = graph_tool.Graph()
        g.lazy_load("example.xml")
    
        g.number_of_vertices()  # <- the graph is only loaded here
    de0a0a8e