www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/NumberOfGraphEdgesExample.m

    %% Number of Graph Edges
% Use the |bucky| adjacency matrix to create a directed graph, and then
% determine how many edges the graph contains.

% Copyright 2015 The MathWorks, Inc.

G = digraph(bucky)

%%
%
N = numedges(G)