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

[GRAPH] clean orphan nodes (fix)

parent cdb02fb7
......@@ -83,7 +83,7 @@ data2graph labels coocs bridge conf partitions = do
| (l, n) <- labels
, Set.member n $ Set.fromList
$ List.concat
$ map (\((s,t),d) -> if d > 0 then [s,t] else [])
$ map (\((s,t),d) -> if d > 0 && s /=t then [s,t] else [])
$ Map.toList bridge
]
......
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