Add GraphProperties and property caching
This commit is contained in:
@@ -195,6 +195,14 @@ function parse_abc(filename::String, verbose::Bool = false)
|
||||
#put all nodes into dirty nodes set
|
||||
graph.dirtyNodes = copy(graph.nodes)
|
||||
|
||||
if (verbose)
|
||||
println("Generating the graph's properties")
|
||||
end
|
||||
graph.properties = GraphProperties(graph)
|
||||
|
||||
if (verbose)
|
||||
println("Done")
|
||||
end
|
||||
# don't actually need to read the edges
|
||||
return graph
|
||||
end
|
||||
|
Reference in New Issue
Block a user