{"action":"opened","issue":{"url":"https://api.github.com/repos/igraph/rigraph/issues/97","labels_url":"https://api.github.com/repos/igraph/rigraph/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/igraph/rigraph/issues/97/comments","events_url":"https://api.github.com/repos/igraph/rigraph/issues/97/events","html_url":"https://github.com/igraph/rigraph/issues/97","id":94141609,"number":97,"title":"cluster_fast_greedy() with argument 'modularity = FALSE' crashes R session","user":{"login":"ntamas","id":195637,"avatar_url":"https://avatars.githubusercontent.com/u/195637?v=3","gravatar_id":"","url":"https://api.github.com/users/ntamas","html_url":"https://github.com/ntamas","followers_url":"https://api.github.com/users/ntamas/followers","following_url":"https://api.github.com/users/ntamas/following{/other_user}","gists_url":"https://api.github.com/users/ntamas/gists{/gist_id}","starred_url":"https://api.github.com/users/ntamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntamas/subscriptions","organizations_url":"https://api.github.com/users/ntamas/orgs","repos_url":"https://api.github.com/users/ntamas/repos","events_url":"https://api.github.com/users/ntamas/events{/privacy}","received_events_url":"https://api.github.com/users/ntamas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-09T20:10:16Z","updated_at":"2015-07-09T20:10:16Z","closed_at":null,"body":"_From @schmidtchristoph on June 29, 2015 12:41_\n\nHi, \r\n\r\nfor me changing the modularity argument of the cluster_fast_greedy() function crashes the R session. Following example reproduces this. Also happens with undirected weighted networks. \r\n\r\nA <- matrix(sample(c(0,1), 100, replace = TRUE), 10, 10)\r\ndiag(A) <- 0\r\ng <- graph_from_adjacency_matrix(A, mode = \"undirected\")\r\n\r\nthis works:\r\ncluster_fast_greedy(g)\r\n\r\nthis then crashes the R session:\r\ncluster_fast_greedy(g, modularity = FALSE)\n\n_Copied from original issue: igraph/igraph#836_"}}