projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9ad735
)
Comments only
author
simonpj@microsoft.com
<unknown>
Wed, 16 Jan 2008 15:05:54 +0000
(15:05 +0000)
committer
simonpj@microsoft.com
<unknown>
Wed, 16 Jan 2008 15:05:54 +0000
(15:05 +0000)
compiler/utils/Digraph.lhs
patch
|
blob
|
history
diff --git
a/compiler/utils/Digraph.lhs
b/compiler/utils/Digraph.lhs
index
6617459
..
f80b33f
100644
(file)
--- a/
compiler/utils/Digraph.lhs
+++ b/
compiler/utils/Digraph.lhs
@@
-83,6
+83,16
@@
instance Outputable a => Outputable (SCC a) where
ppr (CyclicSCC vs) = text "REC" $$ (nest 3 (vcat (map ppr vs)))
\end{code}
+Note [Nodes, keys, vertices]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ * A 'node' is a big blob of client-stuff
+
+ * Each 'node' has a unique (client) 'key', but the latter
+ is in Ord and has fast comparison
+
+ * Digraph then maps each 'key' to a Vertex (Int) which is
+ arranged densely in 0.n
+
\begin{code}
stronglyConnComp
:: Ord key