igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Plotting communities: Error in mark.groups[[g]] no such index a


From: Charles Novaes de Santana
Subject: [igraph] Plotting communities: Error in mark.groups[[g]] no such index at level 1
Date: Sat, 15 Jul 2017 02:25:10 -0300

Hi people,

I am trying to plot the communities of a graph (see attached) but I am getting this error and I didn't find any mention to it in Igraph forums. Could you please help me to understand it?

Please consider my code below:

> g <- read.graph("./geral.graphml",format="graphml")
> edge.betweenness.community(g)
IGRAPH clustering edge betweenness, groups: 20, mod: 0.56
+ groups:
  $`1`
   [1]   1   2   3   4  24  47  48  50  90  91  92  93  94  95  96  97 126 127
  [19] 168 169 170 171 184 185 186 242 243
 
  $`2`
   [1]   5   6   8   9  36  37  38  39  69  80  81  82  98  99 123 160 175 212
  [19] 229 230 231 232 233
 
  $`3`
   [1]   7  51  59  60  71  75  76  77  83  84  85  86  87  89 124 142 143 150
  + ... omitted several groups/vertices
> plot(edge.betweenness.community(g),g)
Error in mark.groups[[g]] : no such index at level 1

Is it anything wrong with my network file?

Thanks for any help

Charles
--
Um axé! :)

--
Charles Novaes de Santana, PhD
https://github.com/cndesantana

Attachment: geral.graphml
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]