tests/testthat/_snaps/graph.md

functions working with graphs do the right thing?

Code
  attr(igraph::E(create_graph_from_dm(nyc_comp())), "vnames")
Output
  [1] "airlines|flights" "airports|flights" "flights|planes"   "flights|weather"

empty graph

Code
  create_graph_from_dm(empty_dm())
Output
  IGRAPH UN-- 0 0 -- 
  + attr: name (v/c)
  + edges (vertex names):
Code
  create_graph_from_dm(dm(x = tibble(a = 1)))
Output
  IGRAPH UN-- 1 0 -- 
  + attr: name (v/c)
  + edges (vertex names):


Try the dm package in your browser

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

dm documentation built on Nov. 2, 2023, 6:07 p.m.