www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PlotGraphWithSpecifiedLayoutExample.m
%% Plot Graph with Specified Layout % Create a directed graph, and then plot the graph using the |'force'| % layout. % Copyright 2015 The MathWorks, Inc. G = digraph(1,2:5); G = addedge(G,2,6:15); G = addedge(G,15,16:20) %% % plot(G,'Layout','force')