Number of edges in graph
Number of Graph Edges
bucky adjacency matrix to create a directed graph, and then determine how many edges the graph contains.
G = digraph(bucky)
G = digraph with properties: Edges: [180x2 table] Nodes: [60x0 table]
N = numedges(G)
N = 180
N — Number of edges
Number of edges, returned as a scalar.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
Introduced in R2015b