Graph object
graph.RdR list-based representation of a g6 graph object.
Value
new_graph()A graph object of class "graph" containing nodes, edges, and combos lists.
is_graph()TRUEifxis a graph object,FALSEotherwise.graph_nodes()A list of graph nodes.
graph_edges()A list of graph edges.
graph_combos()A list of graph combos (node groups).
as_graph()A graph object converted from the input.
Details
new_graph()Creates a new graph object with the specified nodes, edges, and combos.
is_graph()Tests whether an object is a valid graph object.
graph_nodes()Extracts the nodes component from a graph object.
graph_edges()Extracts the edges component from a graph object.
graph_combos()Extracts the combos component from a graph object.
as_graph()Generic function to convert objects to graph format.