Here's a toy example (and on the latest igraph) - still not behaving as expected??
> mat <- matrix(sample(c(0,1), 100 * 100, replace = TRUE, prob = c(0.8, 0.2)), 100, 100)
> g <- graph.adjacency(mat, mode = "undirected", weighted = TRUE, diag = FALSE)
> mc <- maximal.cliques(g)
> any(duplicated(unlist(mc)))
[1] TRUE
> g <- simplify(g)
> mc <- maximal.cliques(g)
> any(duplicated(unlist(mc)))
[1] TRUE
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] reshape_0.8.4 plyr_1.8 Matrix_1.0-12 lattice_0.20-15
[5] xcms_1.37.2 Biobase_2.20.1 BiocGenerics_0.6.0 mzR_1.6.1
[9] Rcpp_0.10.4 igraph_0.6.5-2
loaded via a namespace (and not attached):
[1] codetools_0.2-8 grid_3.0.0 tcltk_3.0.0 tools_3.0.0
>