This file is indexed.

/usr/lib/R/site-library/igraph/tests/test_graph.adhesion.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
32
33
34
35
36
37
38
39
40
context("graph.adhesion")

test_that("graph.adhesion works", {

  library(igraph)

  g <- graph.famous("Zachary")
  expect_that(graph.adhesion(g), equals(1))
  expect_that(graph.cohesion(g), equals(1))

  kite <- graph.formula(Andre    - Beverly:Carol:Diane:Fernando,
                        Beverly  - Andre:Diane:Ed:Garth,
                        Carol    - Andre:Diane:Fernando,
                        Diane    - Andre:Beverly:Carol:Ed:Fernando:Garth,
                        Ed       - Beverly:Diane:Garth,
                        Fernando - Andre:Carol:Diane:Garth:Heather,
                        Garth    - Beverly:Diane:Ed:Fernando:Heather,
                        Heather  - Fernando:Garth:Ike,
                        Ike      - Heather:Jane,
                        Jane     - Ike)

  expect_that(graph.adhesion(kite), equals(1)) 
  expect_that(graph.cohesion(kite), equals(1))

  camp <- graph.formula(Harry:Steve:Don:Bert - Harry:Steve:Don:Bert,
                        Pam:Brazey:Carol:Pat - Pam:Brazey:Carol:Pat,
                        Holly   - Carol:Pat:Pam:Jennie:Bill,
                        Bill    - Pauline:Michael:Lee:Holly,
                        Pauline - Bill:Jennie:Ann,
                        Jennie  - Holly:Michael:Lee:Ann:Pauline,
                        Michael - Bill:Jennie:Ann:Lee:John,
                        Ann     - Michael:Jennie:Pauline,
                        Lee     - Michael:Bill:Jennie,
                        Gery    - Pat:Steve:Russ:John,
                        Russ    - Steve:Bert:Gery:John,
                        John    - Gery:Russ:Michael)

  expect_that(graph.adhesion(camp), equals(2))
  expect_that(graph.cohesion(camp), equals(2))
})