How do I check if the graph is scanned?

I made a system that needs to pull some data from the graph and do some irrelevant stuff but it needs the graph to be scanned in advance. And I need to check if the graph is already scanned in order to avoid scanning the graph everytime. I’ve been messing around a little to find a way to check if the graph is scanned but I can’t seem to find anything. Is there a way to easily check this?


If you are using a grid graph, you can check if myGraph.nodes != null. For a navmesh/recast graph you can check myGraph.tiles != null.