GOOD.utils.synthetic_data.BA3_loc

BA3_loc.py

Functions

perturb(graph_list, p[, id])

Perturb the list of (sparse) graphs by adding/removing edges.

GOOD.utils.synthetic_data.BA3_loc.perturb(graph_list, p, id=None)[source]

Perturb the list of (sparse) graphs by adding/removing edges. :param p: proportion of added edges based on current number of edges.

Returns

A list of graphs that are perturbed from the original graphs. :param graph_list: :param id: