g <- simplify (g)
to remove multiple edges. The problem is that I dont find the correct
syntax for edge.attr.comp. I want my weights (for E(g)$weight) not being altered. The weights should not be touched at all. I just want multiple edges to vanish.
I tried
g <- simplify (g, edge.attr.comb=list (weight=function (x) unique (x), name="ignore"))
and it seems to work but I am not happy with it.
Could you please help to ameliorate the _expression_?
Thanks
Hermann