25 #ifndef GUM_MIXED_GRAPH_H 26 #define GUM_MIXED_GRAPH_H 141 bool nodes_resize_policy =
true,
143 bool arcs_resize_policy =
true,
145 bool edges_resize_policy =
true);
189 virtual void clear();
201 const NodeId node2)
const;
211 const NodeId node2)
const;
214 virtual const std::string
toDot()
const;
217 virtual const std::string
toString()
const;
227 #ifndef GUM_NO_INLINE 229 #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
Base classes for oriented graphs.
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.
Base classes for undirected graphs.
gum is the global namespace for all aGrUM entities
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)
Inline implementation of Base classes for mixed graphs.
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.