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:
parent
1bdb613edd
commit
3451a0c264
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user