Is there an automated way to delete 5 edges from an existing adjacency list, while at the same time adding 5 new random edges that connect existing nodes to the list? Meaning that the deleted edges will be replaced by random edges.
Alternatively, I think it could also work if a program randomly deletes 5 edges from the list and saves that as a new file. Maybe, then, I could use a graph generator that creates random adjacency list with 5 edges that must be made out of nodes ranging from 0-25 for instance.
What I am trying to archive:
I transformed a Causal Loop Diagram into a directed network, so that I can analyze some of its properties such as average path length and other centrality measures. The network comprises 26 nodes and 67 edges. Now that I analyzed all of the important features of the network, I would like to create 1000 slightly changed networks, so that I can check how robust the centrality measures are to random perturbations.
In other words, I would like to create 1000 mutated networks to analyze the changes in betweenness centrality (BC) and closeness centrality (CC) for each of the variables/nodes in the network.