Learn R Programming

cgraph (version 6.0.1)

cg_session_set_graph: Change Active Graph

Description

Set a graph to be the active graph.

Usage

cg_session_set_graph(graph)

Arguments

graph

cg_graph object, the graph that is activated.

Value

none.

Examples

Run this code
# NOT RUN {
# Initialize a computational graph
graph1 <- cg_graph()

# Initialize another computational graph. It becomes the active graph.
graph2 <- cg_graph()

# Set graph1 to be the active graph
cg_session_set_graph(graph1)

# }

Run the code above in your browser using DataLab