84 #ifndef GUM_GRAPH_ELEMENTS_H 85 #define GUM_GRAPH_ELEMENTS_H 155 Edge(NodeId aN1, NodeId aN2);
171 NodeId
other(NodeId
id)
const;
174 NodeId
first()
const;
260 Arc(NodeId tail, NodeId head);
282 NodeId
other(NodeId
id)
const;
285 NodeId
first()
const;
318 void __setTail(NodeId
id);
321 void __setHead(NodeId
id);
330 #ifndef DOXYGEN_SHOULD_SKIP_THIS 340 static Size castToSize(
const Edge& key);
347 virtual Size operator()(
const Edge& key)
const override final;
359 static Size castToSize(
const Arc& key);
366 virtual Size operator()(
const Arc& key)
const override final;
369 #endif // DOXYGEN_SHOULD_SKIP_THIS 388 template <
class VAL >
390 template <
class VAL >
392 template <
class VAL >
401 std::ostream&
operator<<(std::ostream& stream,
const Arc& arc);
405 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 409 #ifndef GUM_NO_INLINE 413 #endif // GUM_GRAPHELEMENTS_H EdgeSet::const_iterator EdgeSetIterator
Some typdefs and define for shortcuts ...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
NodeId second() const
returns the node ID of the other extremal node ID
NodeSet::const_iterator NodeSetIterator
Some typdefs and define for shortcuts ...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Edge & operator=(const Edge &src)
copy operator
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
Set< Arc > ArcSet
Some typdefs and define for shortcuts ...
Edge(NodeId aN1, NodeId aN2)
constructs a new edge (aN1,aN2)
Class template representing hashing function of LpCol.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Set< Edge > EdgeSet
Some typdefs and define for shortcuts ...
The class for generic Hash Tables.
NodeId first() const
returns one extremal node ID (whichever one it is is unspecified)
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
The base class for all directed edgesThis class is used as a basis for manipulating all directed edge...
ListConstIterator< Val >::difference_type operator-(const ListConstIterator< Val > &iter1, const ListConstIterator< Val > &iter2)
For STL compliance, a distance operator.
bool operator!=(const Edge &src) const
checks whether two undirected edges are different
ArcSet::const_iterator ArcSetIterator
Some typdefs and define for shortcuts ...
Unsafe iterators for the Set class.
The base class for all undirected edges.
All hash functions should inherit from this class.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
NodeId n1
the extremal nodes of the edge (their order is unimportant)
bool operator==(const Edge &src) const
checks whether two undirected edges are equal
Size NodeId
Type for node ids.
NodeId other(NodeId id) const
returns an extremal node of an edge given the ID of the other one