File: test_graph.atlas.R

package info (click to toggle)
r-cran-igraph 1.0.1-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,232 kB
  • sloc: ansic: 173,538; cpp: 19,365; fortran: 4,550; yacc: 1,164; tcl: 931; lex: 484; makefile: 149; sh: 9
file content (12 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12

context("graph.atlas")

test_that("graph.atlas works", {
  library(igraph)
  g124 <- graph.atlas(124)
  expect_that(graph.isomorphic(g124, graph(c(1,2,2,3,3,4,4,5,1,5,1,3,2,6),
                                           directed=FALSE)), is_true())
  g234 <- graph.atlas(234)
  expect_that(graph.isomorphic(g234, graph(c(1,6,2,6,3,6,4,6,5,6), n=7,
                                           directed=FALSE)), is_true())
})