vpr/src/device/rr_graph_obj.cpp
/* This function just marks the node to be removed with an INVALID id 
 * It also disconnects and mark the incoming and outcoming edges to be INVALID()
 * And then set the RRGraph as polluted (dirty_flag = true)
 * The compress() function should be called to physically remove the node 
 */
This function just marks the node to be removed with an INVALID id
It also disconnects and mark the incoming and outcoming edges to be INVALID()
And then set the RRGraph as polluted (dirty_flag = true)
The compress() function should be called to physically remove the node
This function just marks the node to be removed with an INVALID id It also disconnects and mark the incoming and outcoming edges to be INVALID () And then set the RRGraph as polluted ( dirty_flag = true ) The compress () function should be called to physically remove the node
void RRGraph::remove_node(const RRNodeId& node) {
    for (auto edge : node_in_edges(node)) {
        remove_edge(edge);
    }
    for (auto edge : node_out_edges(node)) {
        remove_edge(edge);
    }
    invalid_node_ids_.insert(node);
    invalidate_fast_node_lookup();
    set_dirty();
}
void RRGraph :: remove_node ( const RRNodeId & node ) { for ( auto edge : node_in_edges ( node ) ) { remove_edge ( edge ) ; } for ( auto edge : node_out_edges ( node ) ) { remove_edge ( edge ) ; } invalid_node_ids_ . insert ( node ) ; invalidate_fast_node_lookup ( ) ; set_dirty ( ) ; }
This function just marks the node to be removed with an INVALID id
 It also disconnects and mark the incoming and outcoming edges to be INVALID()
 And then set the RRGraph as polluted (dirty_flag = true)
 The compress() function should be called to physically remove the node
This function just marks the node to be removed with an INVALID id It also disconnects and mark the incoming and outcoming edges to be INVALID () And then set the RRGraph as polluted ( dirty_flag = true ) The compress () function should be called to physically remove the node
//Invalidate all connected edges // TODO: consider removal of self-loop edges? //Mark node invalid //Invalidate the node look-up