#include <FPGATrackSimGNNRoadMakerTool.h>
|
| | JunctionAwareVisitor (int ¤t, std::vector< int > &in_control_vars, std::vector< std::vector< int >> &in_comps, std::unordered_map< Vertex, std::vector< Vertex >> &in_pred_map) |
| |
| template<typename VertexT , typename GraphT > |
| void | discover_vertex (VertexT v, const GraphT &g) |
| |
| template<typename EdgeT , typename GraphT > |
| void | examine_edge (EdgeT e, const GraphT &g) |
| |
◆ JunctionAwareVisitor()
| JunctionAwareVisitor::JunctionAwareVisitor |
( |
int & |
current, |
|
|
std::vector< int > & |
in_control_vars, |
|
|
std::vector< std::vector< int >> & |
in_comps, |
|
|
std::unordered_map< Vertex, std::vector< Vertex >> & |
in_pred_map |
|
) |
| |
◆ discover_vertex()
template<typename VertexT , typename GraphT >
| void JunctionAwareVisitor::discover_vertex |
( |
VertexT |
v, |
|
|
const GraphT & |
g |
|
) |
| |
◆ examine_edge()
template<typename EdgeT , typename GraphT >
| void JunctionAwareVisitor::examine_edge |
( |
EdgeT |
e, |
|
|
const GraphT & |
g |
|
) |
| |
Definition at line 299 of file FPGATrackSimGNNRoadMakerTool.cxx.
305 std::vector<int> src_comp;
310 src_comp.push_back(
comp);
315 if (boost::in_degree(src_node,
g) > 1){
316 auto in_edges = boost::in_edges(src_node,
g);
317 for (
auto it = in_edges.first;
it != in_edges.second; ++
it){
322 src_comp.push_back(
comp);
331 m_control_vars[tar_node] = boost::out_degree(tar_node,
g) < 2 ? 1 : -2;
337 m_control_vars[tar_node] = boost::out_degree(tar_node,
g) < 2 ? 1 : -2;
347 m_control_vars[tar_node] = boost::out_degree(tar_node,
g) < 2 ? 1 : -2;
349 std::unordered_set<Vertex> visited;
351 if(visited.count(
node))
return;
352 visited.insert(
node);
355 (src_comp.empty() ||
std::find(node_comps.begin(), node_comps.end(), src_comp[
i]) == node_comps.end())){
◆ m_components
| std::vector<std::vector<int> >& JunctionAwareVisitor::m_components |
|
private |
◆ m_control_vars
| std::vector<int>& JunctionAwareVisitor::m_control_vars |
|
private |
◆ m_current_comp
| int& JunctionAwareVisitor::m_current_comp |
|
private |
◆ m_initial_comp
| int JunctionAwareVisitor::m_initial_comp |
|
private |
◆ m_n_iter
| int JunctionAwareVisitor::m_n_iter = 1 |
|
private |
◆ m_pred_map
| std::unordered_map<Vertex, std::vector<Vertex> >& JunctionAwareVisitor::m_pred_map |
|
private |
The documentation for this class was generated from the following files: