Share Download code Jump to the code Open in the playground

Count nodes and edges

Get the number of nodes and edges in the graph.