This file is indexed.

/usr/lib/R/site-library/igraph/tests/test_get.adjacency.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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
context("get.adjacency")

test_that("get.adjacency works", {

  library(igraph)

  g <- erdos.renyi.game(50, 1/50)
  A <- get.adjacency(g, sparse=FALSE)
  g2 <- graph.adjacency(A, mode="undirected")
  expect_that(graph.isomorphic(g, g2), is_true())

###

  A <- get.adjacency(g, sparse=TRUE)
  g2 <- graph.adjacency(A, mode="undirected")
  expect_that(graph.isomorphic(g, g2), is_true())

###

  g <- erdos.renyi.game(50, 2/50, directed=TRUE)
  A <- get.adjacency(g, sparse=FALSE)
  g2 <- graph.adjacency(A)
  expect_that(graph.isomorphic(g, g2), is_true())

###

  A <- get.adjacency(g, sparse=TRUE)
  g2 <- graph.adjacency(A)
  expect_that(graph.isomorphic(g, g2), is_true())

})