/usr/lib/R/site-library/igraph/tests/test_bug-1032819.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("Bug 1032819")
test_that("VF2 isomorphism considers colors", {
library(igraph)
g <- graph.full(3)
path <- graph.ring(3, circular=F)
V(g)$color <- c(1,1,2)
V(path)$color <- c(1,2,1)
n <- graph.count.subisomorphisms.vf2(g, path)
expect_that(n, equals(2))
})
|