1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

Get the vertices from the map.

This commit is contained in:
Rob Rix 2018-06-19 12:49:59 -04:00
parent 1bdb613edd
commit 3451a0c264

View File

@ -42,7 +42,7 @@ labelWithInEdgeCounts
((,) . flip Monoidal.singleton 0 <*> Class.vertex)
(<>)
(\ (outM, outG) (inM, inG) ->
( outM <> inM <> foldMap (flip Monoidal.singleton (Monoid.Sum (length outG))) (allVertices inG)
( outM <> inM <> foldMap (flip Monoidal.singleton (Monoid.Sum (length outG))) (Monoidal.keys inM)
, outG `Class.connect` inG
))
where mapGraph edgeCountsByVertex g = pairWithCountIn edgeCountsByVertex <$> g