[aGrUM] fix an exotic DiGraph::toDot

parent f0f84c27
......@@ -66,10 +66,10 @@ namespace gum {
return s;
}
const std::string DiGraph::toDot( const std::string& name ) const {
const std::string DiGraph::toDot( ) const {
std::stringstream strBuff;
std::string tab = " ";
strBuff << "digraph " << name << " {" << std::endl;
strBuff << "digraph {" << std::endl;
for ( const auto node : nodes() )
strBuff << tab << node << ";" << std::endl;
......
......@@ -180,7 +180,7 @@ namespace gum {
/// to friendly display the content of the graph in the DOT syntax
/** @param name The graph name in the dot syntax. Default is G.
* @return Returns a string describing the graph in the dot syntax */
virtual const std::string toDot( const std::string& name = "G" ) const;
virtual const std::string toDot() const;
/**
* The topological order stays the same as long as no variable or arcs are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment