/usr/lib/R/site-library/igraph/tests/test_get.edge.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 | context("get.edge")
test_that("get.edge works", {
library(igraph)
g <- erdos.renyi.game(100, 3/100)
edges <- unlist(lapply(seq_len(ecount(g)), get.edge, graph=g))
g2 <- graph(edges, dir=FALSE, n=vcount(g))
expect_that(graph.isomorphic(g, g2), is_true())
})
|