tests/testthat/test-layout.sugiyama.R

test_that("layout_with_sugiyama does not demote matrices to vectors in res$layout.dummy", {
  ex <- graph_from_literal(A -+ B:C, B -+ C:D)
  layex <- layout.sugiyama(ex, layers = NULL)
  expect_that(nrow(layex$layout.dummy), equals(1))
})

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.