www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RemoveEdgesWithSpecifiedEndNodesExample.m
%% Remove Edges with Specified End Nodes % Create and plot a graph. % Copyright 2015 The MathWorks, Inc. s = [1 1 1 2 2 3 3 4 5 5 6 7]; t = [2 4 5 3 6 4 7 8 6 8 7 8]; G = graph(s,t); plot(G) %% % Remove several edges from the graph and plot the result. G = rmedge(G,[1 2 3 4],[5 6 7 8]); plot(G)