tests/testthat/test-unit-mtc.model.graph.R

context("mtc.model.graph")

test_that("Vertices agree between mtc.comparisons and the model tree", {
  network <- thrombolytic
  model <- mtc.model(network)
  graph <- mtc.network.graph(network)
  expect_that(V(model$tree)$name, equals(V(graph)$name))
  expect_that(V(mtc.model.graph(model))$name, equals(V(graph)$name))
})

Try the gemtc package in your browser

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

gemtc documentation built on July 9, 2023, 5:33 p.m.