tests/testthat/test_GetGraph.R

test_that("test case 1", {
  vec <- c("a", "b", "c")
  edge <- matrix(0, 3, 3, dimnames=list(vec, vec))
  edge["a","b"]<-1
  edge["a","c"]<-1
  edge["b","c"]<-1

  ainfo <- get_graph_info(edgeMatrix=edge, varVec=vec)
  expect_equal(1, 1)
})

Try the HGraph package in your browser

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

HGraph documentation built on March 31, 2023, 11:03 p.m.