.register_graph_context

0th

Percentile

Register a graph context for the duration of the current frame

This function sets the provided graph to be the context for tidygraph algorithms, such as e.g. node_is_center(), for the duration of the current environment. It automatically removes the graph once the environment exits.

Keywords
internal
Usage
.register_graph_context(graph, free = FALSE, env = parent.frame())
Arguments
graph

A tbl_graph object

free

Should the active state of the graph be ignored?

env

The environment where the context should be active

Aliases
  • .register_graph_context
Documentation reproduced from package tidygraph, version 1.1.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.