#include <Graph.h>
Classes | |
class | const_iterator |
struct | value_type |
Public Types | |
using | adj_iterator = adj_list::iterator |
using | adj_list = std::vector< edge_list > |
using | const_adj_iterator = adj_list::const_iterator |
using | const_edge_iterator = edge_list::const_iterator |
using | const_edge_range = std::pair< const_edge_iterator, const_edge_iterator > |
using | const_indexer_iterator = typename indexer_type::const_iterator |
using | edge_iterator = edge_list::iterator |
using | edge_list = std::vector< edge_type > |
using | edge_range = std::pair< edge_iterator, edge_iterator > |
using | edge_store = std::vector< E > |
using | edge_type = std::pair< index_type, index_type > |
using | index_result = std::pair< index_type, bool > |
using | index_type = std::vector< double >::size_type |
using | indexer_iterator = typename indexer_type::iterator |
using | indexer_type = std::map< N, index_type > |
using | node_list = std::vector< N > |
Public Member Functions | |
void | addEdge (const N &from, const N &to, const E &edge) |
index_type | addNode (const N &) |
adj_iterator | begin () |
const_adj_iterator | begin () const |
const_iterator | begin_iter () const |
void | clear () |
it clear everything! More... | |
size_t | edge_size () const |
const E & | edgeData (index_type i) const |
edge_range | edges (index_type nodeIndex) |
const_edge_range | edges (index_type nodeIndex) const |
edge_range | edges (const N &) |
const_edge_range | edges (const N &) const |
adj_iterator | end () |
const_adj_iterator | end () const |
const_iterator | end_iter () const |
void | findRoots (edge_list &) const |
Graph () | |
void | invert (Graph &g) const |
const N & | nodeData (const edge_type &) const |
const N & | nodeData (index_type) const |
const N & | nodeData (const const_adj_iterator &) const |
index_result | nodeIndex (const N &) const |
bool | replace (const N &oldNode, const N &newNode) |
bool | replaceEdge (const E &ldEdge, const E &newEdge) |
auto | size () const -> adj_list::size_type |
void | swap (Graph< N, E > &) |
~Graph () | |
Private Attributes | |
adj_list | adjl_ |
edge_store | edges_ |
edge_list | emptyEdges_ |
indexer_type | indexer_ |
node_list | nodes_ |
using math::Graph< N, E >::adj_iterator = adj_list::iterator |
using math::Graph< N, E >::adj_list = std::vector<edge_list> |
using math::Graph< N, E >::const_adj_iterator = adj_list::const_iterator |
using math::Graph< N, E >::const_edge_iterator = edge_list::const_iterator |
using math::Graph< N, E >::const_edge_range = std::pair<const_edge_iterator, const_edge_iterator> |
using math::Graph< N, E >::const_indexer_iterator = typename indexer_type::const_iterator |
using math::Graph< N, E >::edge_iterator = edge_list::iterator |
using math::Graph< N, E >::edge_list = std::vector<edge_type> |
using math::Graph< N, E >::edge_range = std::pair<edge_iterator, edge_iterator> |
using math::Graph< N, E >::edge_store = std::vector<E> |
using math::Graph< N, E >::edge_type = std::pair<index_type, index_type> |
using math::Graph< N, E >::index_result = std::pair<index_type, bool> |
using math::Graph< N, E >::index_type = std::vector<double>::size_type |
using math::Graph< N, E >::indexer_iterator = typename indexer_type::iterator |
using math::Graph< N, E >::indexer_type = std::map<N, index_type> |
using math::Graph< N, E >::node_list = std::vector<N> |
|
inline |
|
inline |
void math::Graph< N, E >::addEdge | ( | const N & | from, |
const N & | to, | ||
const E & | edge | ||
) |
Definition at line 261 of file Graph.h.
References math::Graph< N, E >::addNode(), math::Graph< N, E >::adjl_, and math::Graph< N, E >::edges_.
Referenced by graph_combine(), math::Graph< N, E >::invert(), DDCompactViewImpl::position(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
Graph< N, E >::index_type math::Graph< N, E >::addNode | ( | const N & | node | ) |
Definition at line 229 of file Graph.h.
References math::Graph< N, E >::adjl_, training_settings::idx, math::Graph< N, E >::indexer_, math::Graph< N, E >::nodes_, and mps_fire::result.
Referenced by math::Graph< N, E >::addEdge(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
|
inline |
Definition at line 192 of file Graph.h.
Referenced by TinyDomTest::allNodes(), TinyDomTest2::allNodes(), GeometryInfoDump::dumpInfo(), and math::Graph< N, E >::findRoots().
|
inline |
|
inline |
void math::Graph< N, E >::clear | ( | void | ) |
it clear everything!
Definition at line 386 of file Graph.h.
References math::Graph< N, E >::adjl_, math::Graph< N, E >::edges_, math::Graph< N, E >::indexer_, and math::Graph< N, E >::nodes_.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), math::Graph< Node2, AnotherDummy2 >::edgeData(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
|
inline |
Definition at line 178 of file Graph.h.
Referenced by TinyDomTest::allNodes(), DDCheckPD(), math::Graph< N, E >::const_iterator::value_type::edge(), math::Graph< N, E >::invert(), and DDCompactViewImpl::~DDCompactViewImpl().
|
inline |
Definition at line 272 of file Graph.h.
References math::Graph< N, E >::adjl_, and math::Graph< N, E >::nodeIndex().
Referenced by DDCheckAll(), math::Graph< N, E >::edges(), DDCompactViewImpl::~DDCompactViewImpl(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
|
inline |
Definition at line 280 of file Graph.h.
References math::Graph< N, E >::adjl_, math::Graph< N, E >::edges(), and math::Graph< N, E >::nodeIndex().
|
inline |
Definition at line 288 of file Graph.h.
References math::Graph< N, E >::edges(), math::Graph< N, E >::emptyEdges_, math::Graph< N, E >::nodeIndex(), and mps_fire::result.
|
inline |
Definition at line 300 of file Graph.h.
References math::Graph< N, E >::edges(), math::Graph< N, E >::emptyEdges_, math::Graph< N, E >::nodeIndex(), and mps_fire::result.
|
inline |
Definition at line 194 of file Graph.h.
Referenced by TinyDomTest::allNodes(), TinyDomTest2::allNodes(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and math::Graph< N, E >::findRoots().
|
inline |
Definition at line 195 of file Graph.h.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inline |
void math::Graph< N, E >::findRoots | ( | edge_list & | result | ) | const |
Definition at line 332 of file Graph.h.
References math::Graph< N, E >::begin(), math::Graph< N, E >::end(), and math::Graph< N, E >::size().
Referenced by math::Graph< Node2, AnotherDummy2 >::size().
void math::Graph< N, E >::invert | ( | Graph< N, E > & | g | ) | const |
Definition at line 395 of file Graph.h.
References math::Graph< N, E >::addEdge(), math::Graph< N, E >::adjl_, MillePedeFileConverter_cfg::e, math::Graph< N, E >::edgeData(), and math::Graph< N, E >::nodeData().
Referenced by math::Graph< Node2, AnotherDummy2 >::size().
|
inline |
Definition at line 312 of file Graph.h.
References math::Graph< N, E >::nodes_.
Referenced by TinyDomTest::allNodes(), TinyDomTest2::allNodes(), DDCheckAll(), DDCheckConnect(), math::Graph< N, E >::const_iterator::value_type::from(), graph_combine(), math::Graph< N, E >::invert(), math::Graph< N, E >::const_iterator::value_type::to(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
|
inline |
|
inline |
Definition at line 326 of file Graph.h.
References math::Graph< N, E >::adjl_, and math::Graph< N, E >::nodes_.
|
inline |
Definition at line 247 of file Graph.h.
References RemoveAddSevLevel::flag, training_settings::idx, math::Graph< N, E >::indexer_, and mps_fire::result.
Referenced by math::Graph< N, E >::edges(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
bool math::Graph< N, E >::replace | ( | const N & | oldNode, |
const N & | newNode | ||
) |
Definition at line 356 of file Graph.h.
References math::Graph< N, E >::indexer_, and math::Graph< N, E >::nodes_.
Referenced by graph_combine(), and math::Graph< Node2, AnotherDummy2 >::~Graph().
bool math::Graph< N, E >::replaceEdge | ( | const E & | ldEdge, |
const E & | newEdge | ||
) |
Definition at line 370 of file Graph.h.
References math::Graph< N, E >::edges_, and mps_fire::result.
Referenced by math::Graph< Node2, AnotherDummy2 >::~Graph().
|
inline |
Definition at line 196 of file Graph.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), TinyDomTest2::allNodes(), DDCheckAll(), DDCheckConnect(), math::Graph< N, E >::findRoots(), math::Graph< N, E >::const_iterator::operator++(), and DDCompactViewImpl::~DDCompactViewImpl().
void math::Graph< N, E >::swap | ( | Graph< N, E > & | g | ) |
Definition at line 413 of file Graph.h.
References math::Graph< N, E >::adjl_, math::Graph< N, E >::edges_, math::Graph< N, E >::emptyEdges_, math::Graph< N, E >::indexer_, and math::Graph< N, E >::nodes_.
Referenced by math::Graph< Node2, AnotherDummy2 >::size(), and DDCompactViewImpl::swap().
|
private |
Definition at line 210 of file Graph.h.
Referenced by math::Graph< N, E >::addEdge(), math::Graph< N, E >::addNode(), math::Graph< Node2, AnotherDummy2 >::begin(), math::Graph< N, E >::clear(), math::Graph< N, E >::const_iterator::value_type::edge(), math::Graph< N, E >::edges(), math::Graph< Node2, AnotherDummy2 >::end(), math::Graph< Node2, AnotherDummy2 >::end_iter(), math::Graph< N, E >::invert(), math::Graph< N, E >::nodeData(), math::Graph< N, E >::const_iterator::operator++(), math::Graph< Node2, AnotherDummy2 >::size(), math::Graph< N, E >::swap(), and math::Graph< N, E >::const_iterator::value_type::to().
|
private |
Definition at line 216 of file Graph.h.
Referenced by math::Graph< N, E >::addEdge(), math::Graph< N, E >::clear(), math::Graph< Node2, AnotherDummy2 >::edge_size(), math::Graph< Node2, AnotherDummy2 >::edgeData(), math::Graph< N, E >::replaceEdge(), and math::Graph< N, E >::swap().
|
private |
Definition at line 222 of file Graph.h.
Referenced by math::Graph< N, E >::edges(), and math::Graph< N, E >::swap().
|
private |
Definition at line 219 of file Graph.h.
Referenced by math::Graph< N, E >::addNode(), math::Graph< N, E >::clear(), math::Graph< N, E >::nodeIndex(), math::Graph< N, E >::replace(), and math::Graph< N, E >::swap().
|
private |
Definition at line 213 of file Graph.h.
Referenced by math::Graph< N, E >::addNode(), math::Graph< N, E >::clear(), math::Graph< N, E >::nodeData(), math::Graph< N, E >::replace(), and math::Graph< N, E >::swap().