/usr/share/doc/r-cran-igraph/tests/testthat/test_graph.complementer.R is in r-cran-igraph 1.1.2-2ubuntu3.
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 | context("complementer")
test_that("complementer works", {
library(igraph)
g <- sample_gnp(50, 3/50)
g2 <- complementer(g)
g3 <- complementer(g2)
expect_that(graph.isomorphic(g, g3), is_true())
})
|