select_nodes_by_id function

Select nodes in a graph by their ID values