/usr/lib/R/site-library/igraph/tests/test_delete.edges.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 | context("delete.edges")
test_that("delete.edges works", {
library(igraph)
g <- graph.formula(A:B:C - D:E:F, D-E-F)
g2 <- delete.edges(g, E(g, P=c("D", "E")))
expect_that(as.matrix(g2[]),
is_equivalent_to(cbind(c(0,0,0,1,1,1), c(0,0,0,1,1,1),
c(0,0,0,1,1,1), c(1,1,1,0,0,0),
c(1,1,1,0,0,1), c(1,1,1,0,1,0))))
})
|