Add get_num_vertex_nodes, get_num_edge_nodes.