Number of nodes in graph
Number of Graph Nodes
bucky adjacency matrix to create a directed graph, and then determine how many nodes the graph contains.
G = digraph(bucky)
G = digraph with properties: Edges: [180x2 table] Nodes: [60x0 table]
N = numnodes(G)
N = 60
N — Number of nodes
Number of nodes, 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