tests/testthat/test-bug-154.R

test_that("graph.get.subisomorphisms.vf2() works even if the graph has a vertex attribute named x", {
  g <- graph.full(4)
  V(g)$x <- 1:4
  subs <- graph.get.subisomorphisms.vf2(g, graph.ring(4))
  expect_equal(length(subs), 24)
})

Try the igraph package in your browser

Any scripts or data that you put into this service are public.

igraph documentation built on Aug. 10, 2023, 9:08 a.m.