/usr/share/doc/r-cran-igraph/tests/testthat/test_get.edgelist.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 | context("edgelist")
test_that("as_edgelist works", {
library(igraph)
g <- sample_gnp(100, 3/100)
e <- as_edgelist(g)
g2 <- graph(t(e), n=vcount(g), dir=FALSE)
expect_that(graph.isomorphic(g, g2), is_true())
})
|