#include <TICLGraph.h>
Public Member Functions | |
void | dfsForCC (unsigned int nodeIndex, std::unordered_set< unsigned int > &visited, std::vector< unsigned int > &component) const |
std::vector< std::vector< unsigned int > > | findSubComponents () |
std::vector< std::vector< unsigned int > > | getConnectedComponents () const |
const ticl::Node & | getNode (int i) const |
const std::vector< ticl::Node > & | getNodes () const |
TICLGraph ()=default | |
TICLGraph (std::vector< ticl::Node > &n, std::vector< int > isRootNode) | |
~TICLGraph ()=default | |
Private Attributes | |
std::vector< int > | isRootNode_ |
std::vector< ticl::Node > | nodes_ |
Definition at line 42 of file TICLGraph.h.
|
default |
|
inline |
|
default |
void TICLGraph::dfsForCC | ( | unsigned int | nodeIndex, |
std::unordered_set< unsigned int > & | visited, | ||
std::vector< unsigned int > & | component | ||
) | const |
Definition at line 35 of file TICLGraph.cc.
References nodes_, and class-composition::visited.
Referenced by getConnectedComponents().
std::vector< std::vector< unsigned int > > TICLGraph::findSubComponents | ( | ) |
Definition at line 20 of file TICLGraph.cc.
References makeMuonMisalignmentScenario::components, EcalPhiSymFlatTableProducers_cfi::id, isRootNode_, nodes_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ticl::TracksterLinkingbySkeletons::linkTracksters().
std::vector< std::vector< unsigned int > > TICLGraph::getConnectedComponents | ( | ) | const |
Definition at line 48 of file TICLGraph.cc.
References makeMuonMisalignmentScenario::components, dfsForCC(), mps_fire::i, nodes_, and class-composition::visited.
|
inline |
|
inline |
|
private |
Definition at line 66 of file TICLGraph.h.
Referenced by findSubComponents(), and TICLGraph().
|
private |
Definition at line 65 of file TICLGraph.h.
Referenced by dfsForCC(), findSubComponents(), getConnectedComponents(), getNode(), getNodes(), and TICLGraph().