mirror of
https://github.com/github/semantic.git
synced 2024-12-11 08:45:48 +03:00
Vertices are initially zero, rather than unset.
This commit is contained in:
parent
5a9ea5e61b
commit
1bdb613edd
@ -39,7 +39,7 @@ labelWithInEdgeCounts
|
||||
= uncurry mapGraph
|
||||
. Class.foldg
|
||||
(lowerBound, lowerBound)
|
||||
((,) lowerBound . Class.vertex)
|
||||
((,) . flip Monoidal.singleton 0 <*> Class.vertex)
|
||||
(<>)
|
||||
(\ (outM, outG) (inM, inG) ->
|
||||
( outM <> inM <> foldMap (flip Monoidal.singleton (Monoid.Sum (length outG))) (allVertices inG)
|
||||
|
Loading…
Reference in New Issue
Block a user