projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0b705
)
cyclegraph: bugfix - graph reachability was reversed
author
Brian Norris
<banorris@uci.edu>
Tue, 31 Jul 2012 22:59:56 +0000
(15:59 -0700)
committer
Brian Norris
<banorris@uci.edu>
Tue, 31 Jul 2012 23:15:57 +0000
(16:15 -0700)
[Split from Brian Demsky's commit]
cyclegraph.cc
patch
|
blob
|
history
diff --git
a/cyclegraph.cc
b/cyclegraph.cc
index fefd595a35e9100482e2ddabe4296d1af55ab78c..c526af0f590266a825f698be60fb92c4354d1a9c 100644
(file)
--- a/
cyclegraph.cc
+++ b/
cyclegraph.cc
@@
-25,7
+25,7
@@
void CycleGraph::addEdge(const ModelAction *from, const ModelAction *to) {
CycleNode *tonode=getNode(to);
if (!hasCycles) {
// Check for Cycles
- hasCycles=checkReachable(
fromnode, to
node);
+ hasCycles=checkReachable(
tonode, from
node);
}
fromnode->addEdge(tonode);
}