rgraph_ws.rewire_graph(graph, p, both.ends = FALSE, self = FALSE, multiple = FALSE,
undirected = getOption("diffnet.undirected"))netdiffuseR-graphs)TRUE rewires both ends.TRUE, allows loops (self edges).TRUE allows multiple edges.TRUE when the graph is undirected.rdiffnet,
rgraph_ba, rgraph_er,
rgraph_ws