The question is not very clear, but maybe you can use my example to get what you need:
s = [1 1 2 3 4 5 6 7 8 9 9 10 11];
t = [2 7 3 4 5 6 7 8 9 10 12 11 12];
nodes_coord = [
0.5 1.5
0 1
1 1
1.5 2
1.5 2.5
1 3
0 2
0.5 4
1.5 5
3 4
3 2
2 3
];
node_names = cellstr(num2str((1 : 12)'));
G = graph(s,t,[],node_names);
h = plot(G,'XData',nodes_coord(:,1),'YData', nodes_coord(:,2),'linewidth',2,'MarkerSize',2);
h.NodeLabel = [];
text(nodes_coord(:,1), nodes_coord(:,2), node_names, 'FontSize',15, 'FontWeight','bold', ...
'HorizontalAlignment','left', 'VerticalAlignment','top');
set(gca,'Fontsize',15,'FontWeight','Bold','LineWidth',2, 'box','on');
[bin,binsize] = conncomp(G)
bin =
1 1 1 1 1 1 1 1 1 1 1 1
binsize =
12
Now, we remove simultaneously two edges and let's see what we get:
s_remove = [1 8];
t_remove = [2 9];
Grmedge = rmedge(G,s_remove,t_remove)
figure
h = plot(Grmedge,'XData',nodes_coord(:,1),'YData', nodes_coord(:,2),'linewidth',2,'MarkerSize',2);
h.NodeLabel = [];
text(nodes_coord(:,1), nodes_coord(:,2), node_names, 'FontSize',15, 'FontWeight','bold', ...
'HorizontalAlignment','left', 'VerticalAlignment','top');
set(gca,'Fontsize',15,'FontWeight','Bold','LineWidth',2, 'box','on');
[bin,binsize] = conncomp(Grmedge)
bin =
1 1 1 1 1 1 1 1 2 2 2 2
binsize =
8 4