This default method uses the loongraph display states as arguments to add a graph to the graphswitch widget.
# S3 method for default
l_graphswitch_add(
widget,
graph,
from,
to,
isDirected,
label = "",
index = "end",
...
)
graphswitch widget handle (or widget path)
a vector with the node names, i.e. this argument gets passed on
as the nodes argument to creat a loongraph
like object
vector with node names of the from-to pairs for edges
vector with node names of the from-to pairs for edges
boolean to indicate whether the from-to-list defines directed or undirected edges
string with label for graph
position of graph in the graph list
additional arguments are not used for this methiod
id for graph in the graphswitch widget