Commit dbe08169 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[OPTIM] removing list

parent b440928e
#!/bin/bash
stack install --profile --test
#
stack install --profile # --test
......@@ -59,7 +59,7 @@ degree g n = sum
$ DGI.lneighbors g n
vcount :: DGIP.Gr a b -> Double
vcount = fromIntegral . List.length . List.nub . nodes
vcount = fromIntegral . Set.size . Set.fromList . nodes
-- | TODO tests, optim and use IGraph library, fix IO ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment