aGrUM  0.16.0
graphElements.cpp
Go to the documentation of this file.
1 
28 #include <iostream>
29 #include <sstream>
30 
31 #include <agrum/agrum.h>
32 
34 
35 #ifdef GUM_NO_INLINE
37 #endif /* GUM_NO_INLINE */
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 
41 namespace gum {
42 
44  // we need to provide hash functions for some Edge and Arc
45 
47 
48  std::ostream& operator<<(std::ostream& stream, const Edge& edge) {
49  return (stream << edge.first() << "--" << edge.second());
50  }
51 
53 
54  std::ostream& operator<<(std::ostream& stream, const Arc& arc) {
55  return (stream << arc.first() << "->" << arc.second());
56  }
57 
58 } /* namespace gum */
59 
60 # ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
61 template class gum::HashFunc< gum::NodeSet >;
62 # endif
63 
64 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Class template representing hashing function of LpCol.
Definition: hashFunc.h:471
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map&#39;s DAG in output using the Graphviz-dot format.
Definition: BayesNet_tpl.h:605
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.