File: test-graph_manipulate.R

package info (click to toggle)
r-cran-graphlayouts 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,660 kB
  • sloc: cpp: 696; sh: 13; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
test_that("reorder_edges works", {
   g <- igraph::make_full_graph(3)
   igraph::E(g)$weight <- c(1,2,3)
   g1 <- graphlayouts::reorder_edges(g,"weight")
   expect_equal(igraph::E(g)$weight,rev(igraph::E(g1)$weight))
})