R/tidygraph.R

Defines functions expect_nodes

expect_nodes <- function() {
  if (!tidygraph::.graph_context$free() && tidygraph::.graph_context$active() != "nodes") {
    stop("This call requires nodes to be active", call. = FALSE)
  }
}
saurfang/graphcoloring documentation built on Jan. 19, 2020, 5:01 a.m.