Graphs are a powerful mental (and mathematical) model of structure in general; if you can formulate a problem as one dealing with graphs, even if it doesn’t look like a graph problem, you are probably one step closer to solving it.
- Chapter 5: Traversal: The Skeleton Key of Algorithmics
- from Python Algorithms: Mastering Basic Algorithms in the Python Language, Second Edition
- Publisher: Apress
- Released: September 2015
Formulate problem as graph
Share this highlighthttp://www.safaribooksonline.com/a/python-algorithms-mastering/18552358/