vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp
/************************************************************************
 * Find the number of nodes in the same class
 * in a routing resource graph
 ************************************************************************/
Find the number of nodes in the same class
in a routing resource graph
Find the number of nodes in the same class in a routing resource graph
short find_rr_graph_num_nodes(const RRGraph& rr_graph,
                              const std::vector<t_rr_type>& node_types) {
  short counter = 0;
  for (const RRNodeId& node : rr_graph.nodes()) {
    if (node_types.end() == std::find(node_types.begin(), node_types.end(), rr_graph.node_type(node))) {
      continue;
    }
    counter++; 
  } 
  return counter;
}
short find_rr_graph_num_nodes ( const RRGraph & rr_graph , const std :: vector < t_rr_type > & node_types ) { short counter = 0 ; for ( const RRNodeId & node : rr_graph . nodes ( ) ) { if ( node_types . end ( ) == std :: find ( node_types . begin ( ) , node_types . end ( ) , rr_graph . node_type ( node ) ) ) { continue ; } counter ++ ; } return counter ; }
Find the number of nodes in the same class
 in a routing resource graph
Find the number of nodes in the same class in a routing resource graph
/* Bypass the nodes not in the class */