Suppose a given directed graph G
with N
vertices and M
edges.
How is it possible to create from the existing M
connections of the graph G
two subgraphs S_1
and S_2
. These respective subgraphs each have half of the existing edges. Furthermore it is determined by randomness, whether an edge belongs to S_1
or S_2
.
Example:
G <- erdos.renyi.game(5,p=0.5,directed = TRUE)
E(G)
> + 12/12 edges:
> [1] 1->5 2->1 4->1 5->1 1->2 3->2 5->2 1->3 3->5 5->3 2->4 3->4
Of the 12
existing edges should randomly M/2=6
edges be selected, which are representing the Edges in S_1
. The remaining 6
edges provide the edges is of S_2
.