Function py_raphtory::graph_gen::random_attachment
source · pub fn random_attachment(
g: &PyGraph,
vertices_to_add: usize,
edges_per_step: usize
)Expand description
Generates a graph using the random attachment model
This function is a graph generation model based upon: Callaway, Duncan S., et al. “Are randomly grown graphs really random?.” Physical Review E 64.4 (2001): 041902.
Arguments: g: The graph you wish to add vertices and edges to vertices_to_add: The amount of vertices you wish to add to the graph (steps) edges_per_step: The amount of edges a joining vertex should add to the graph
Returns: None