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™.
Introduced in R2015b