Hello guys,
If I have a network ( Lets call it x) and it is described by the following edges:
x=[1 2 3 4 5 6];
Edg =[1 2; 1 3 ; 2 3 ; 3 4 ; 4 5;6 3; 5 6];
A=graph(Edg(:,1),Edg(:,2));
plot(A)
The graph A looks like this :
If x is devided into two areas (we know the nodes in each area):
Now i want to plot each area, so the graph above will be splitted into two graphs and vertix 3 is in both graphs.
To do this i need to write a code which gives the edges in each area, like this:
Edges for x1 [ 1 2; 2 3; 1 3]. Edges for x2 [ 3 6; 3 4; 4 5 ; 5 6].