Indeed this seems to be a bug, if the graph is directed. The
workaround is to convert it to an undirected graph, the clique
computation ignores direction anyway:
library(igraph)
adj <- matrix(1, nrow=11, ncol=11) - diag(11)
g <- graph.adjacency(adj)
largest.cliques(g)
# [[1]]
# [1] 10 8 1
#
# [
There is a problem with the largest clique computation in the recent version
of igraph.
> library(igraph)
> adj <- matrix(1, nrow=11, ncol=11) - diag(11)
> g <- graph.adjacency(adj)
> largest.cliques(g)
[[1]]
[1] 10 8 1
[[2]]
[1] 9 7 1
[[3]]
[1] 8 7 1
Warning message:
In largest.cliques(g) :
2 matches
Mail list logo