label also with null weight

This commit is contained in:
Marian Honsch 2011-05-25 15:33:16 +02:00
parent 18a20dc117
commit e4b36ae8bb
1 changed files with 1 additions and 1 deletions

2
ext/cIGraph_community.c Normal file → Executable file
View File

@ -712,7 +712,7 @@ igraph_arpack_options_init(&arpack_opt);
igraph_community_label_propagation(graph,
&membership,
&weights_vec,
igraph_vector_size(&weights_vec) > 0 ? &weights_vec : NULL,
NULL,
NULL);