#includeusing namespace std; int main() { int node_id = 10; cout<<"Node id: "< In the above example code, we have used C++ to assign a node id of 10 to a particular node and printed it on the console. This code can be used in various graph-based algorithms and data structures like shortest path algorithms, network flow problems, etc. Package library: Boost Graph Library (BGL)