graph-context: Register a graph context for the duration of the current...

graph-contextR Documentation

Register a graph context for the duration of the current frame

Description

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.

Usage

.graph_context

.register_graph_context(graph, free = FALSE, env = parent.frame())

.free_graph_context(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

Format

An object of class ContextBuilder (inherits from R6) of length 12.


tidygraph documentation built on June 22, 2024, 11:32 a.m.