www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/EdgeListGraphConstructionExample.m
%% Edge List Graph Construction % Create and plot a cube graph using a list of the end nodes of each edge. % Copyright 2015 The MathWorks, Inc. s = [1 1 1 2 2 3 3 4 5 5 6 7]; t = [2 4 8 3 7 4 6 5 6 8 7 8]; G = graph(s,t) %% % plot(G)