28 #ifndef GUM_MIXED_GRAPH_H 29 #define GUM_MIXED_GRAPH_H 144 bool nodes_resize_policy =
true,
146 bool arcs_resize_policy =
true,
148 bool edges_resize_policy =
true);
192 virtual void clear();
204 const NodeId node2)
const;
214 const NodeId node2)
const;
217 virtual const std::string
toDot()
const;
220 virtual const std::string
toString()
const;
230 #ifndef GUM_NO_INLINE 232 #endif // GUM_NOINLINE const std::vector< NodeId > mixedUnorientedPath(const NodeId node1, const NodeId node2) const
returns a mixed/directed path from node1 to node2 in the arc/edge set
MixedGraph & operator=(const MixedGraph &g)
copy operator
virtual void clear()
removes all the nodes, arcs and edges from the graph
bool operator!=(const MixedGraph &g) const
tests whether two MixedGraphs are different
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual const std::string toString() const
to friendly display the content of the MixedGraph
static constexpr Size default_size
The default number of slots in hashtables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void eraseNode(const NodeId id)
remove a node as well as its adjacent arcs and edges from the graph
virtual const std::string toDot() const
to friendly display mixed graph in DOT format
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
Base class for all oriented graphs.
bool operator==(const MixedGraph &g) const
tests whether two MixedGraphs are identical (same nodes, arcs and edges)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
MixedGraph(Size nodes_size=HashTableConst::default_size, bool nodes_resize_policy=true, Size arcs_size=HashTableConst::default_size, bool arcs_resize_policy=true, Size edges_size=HashTableConst::default_size, bool edges_resize_policy=true)
default constructor
Base class for undirected graphs.
const std::vector< NodeId > mixedOrientedPath(const NodeId node1, const NodeId node2) const
returns a mixed edge/directed arc path from node1 to node2 in the arc/edge set
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
virtual ~MixedGraph()
destructor
Base class for mixed graphs.