DescriptionSimplify and optimize FindCycles
Finding cycles in a directed graph only requires a simple depth first
traversal, it does not require checking every path in the graph.
This is now fast enough to actually identify and print cycles between
targets.
Changes the error message slightly for file and target cycles,
and adds tests for both those cases.
Patch from cjhopman@chromium.org.
R=scottmg@chromium.org
Committed: https://code.google.com/p/gyp/source/detail?r=1992
Patch Set 1 #Patch Set 2 : Fix cycle output ordering #
Total comments: 10
Patch Set 3 : #Patch Set 4 : #Patch Set 5 : Add test for file cycle and fix file full cycle case #
Total comments: 2
Patch Set 6 : #Patch Set 7 : Change tuples to lists in tests #Patch Set 8 : Rebase #
Messages
Total messages: 11 (1 generated)
|