
Shuffle Node IDs in a Graph
shuffle_graph_ids.Rd
Randomly shuffles the IDs of the nodes in a given graph and optionally plots the shuffled graph.
Examples
# Create an example graph
g <- make_tree(n_cases = 10, R = 2)
# Shuffle the node IDs
shuffled_graph <- shuffle_graph_ids(g, plot = TRUE)