tests/testthat/_snaps/igraph.md

graph_from_data_frame: print output is consistent

Code
  print(g_directed)
Output
  <dm_graph> directed, 3 vertices, 2 edges
  Vertices: a, b, c 
  Edges: a|b, b|c 
Code
  print(g_undirected)
Output
  <dm_graph> undirected, 3 vertices, 2 edges
  Vertices: a, b, c 
  Edges: a|b, b|c

graph_from_data_frame: zero-row data frame builds graph with no edges

Code
  print(g)
Output
  <dm_graph> undirected, 2 vertices, 0 edges
  Vertices: x, y


Try the dm package in your browser

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

dm documentation built on March 5, 2026, 9:07 a.m.