What is the difference between scan and update on AStarPath?

Just wondering what scan does and what update does and how they differ?

Hi

Scan recalculates the whole graph, a slow process. UpdateGraphs can update only a small region of it and is therefore much faster and better suited for updating the graph when the game is running.

See http://arongranberg.com/astar/docs/graph-updates.php

Thanks.