/usr/lib/R/site-library/igraph/tests/test_largest.cliques.R is in r-cran-igraph 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | context("largest.cliques")
test_that("largest.cliques works", {
library(igraph)
g <- erdos.renyi.game(50,20/50)
lc <- largest.cliques(g)
## TODO: this only checks that these are cliques
expect_that(unique(sapply(lc, function(x)
graph.density(induced.subgraph(g, x)))),
equals(1))
})
|