⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 num_edges.m

📁 The MatlabBGL library fills a hole in Matlab s suite of algorithms. Namely, it provides a rich set o
💻 M
字号:
function n=num_edges(A)
% NUM_EDGES The number of edges in a graph.
%
% n = num_edges(A) returns the number of edges in graph A.  
%
% For symmetric/undirected graphs, the number of edges returned is twice 
% the number of undirected edges.
%
% Example:
%    load graphs/dfs_example.mat
%    n = num_edges(A)
%
% See also NUM_VERTICES

n = nnz(A);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -