Skip to content

Hello

3 messages · Shrinivas Dharma, Ivan Krylov, Ben Tupper

#
Hello

I am not sure if this is the right place to ask the question of my type.

Nonetheless, being desparate , let me ask

I am wirking on a social network analysis project with R igraph software.

My graph data has multiple edges and multiple self loops

Going by the instructions I used the simplify function to make it simple 
graph

code chunk as follows

 >simplify(r1,remove.multiple = T,remove.loops = T,
 ? edge.attr.comb = igraph_opt("edge.attr.comb")
)
 >plot.igraph(r1)

still I am getting loops and multiple edges. I am using the latest 
igraph edition

Please tell me how to go about it

Regards

SHRINIVAS
#
On Tue, 8 Mar 2022 15:55:19 +0530
Shrinivas Dharma <dharma at metricuk.com> wrote:

            
Have you tried the igraph forum? It's probably a better fit because
it's more likely to have people with igraph experience:
https://igraph.discourse.group/c/usage/11
#
Hello,

I agree with Ivan's suggestion, but also the few statements you show
perplex me.  According to the igraph docs
(https://igraph.org/r/doc/simplify.html) simplify() returns a "A new
graph object with the edges deleted." So wouldn't you want something
like the following?

r2 <- simplify(r1, remove.multiple = TRUE, remove.loops = TRUE,
   edge.attr.comb = igraph_opt("edge.attr.comb"))
plot.igraph(r2)

Ben
On Tue, Mar 8, 2022 at 5:55 AM Ivan Krylov <krylov.r00t at gmail.com> wrote: