From e4b36ae8bbebbb697cf60a83dbdc37d75408bb07 Mon Sep 17 00:00:00 2001 From: Marian Honsch Date: Wed, 25 May 2011 15:33:16 +0200 Subject: [PATCH] label also with null weight --- ext/cIGraph_community.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ext/cIGraph_community.c diff --git a/ext/cIGraph_community.c b/ext/cIGraph_community.c old mode 100644 new mode 100755 index 69568a5..854ce6b --- a/ext/cIGraph_community.c +++ b/ext/cIGraph_community.c @@ -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);