www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/NumberOfGraphNodesExample.m
%% Number of Graph Nodes % Use the |bucky| adjacency matrix to create a directed graph, and then % determine how many nodes the graph contains. % Copyright 2015 The MathWorks, Inc. G = digraph(bucky) %% % N = numnodes(G)