more renaming

This commit is contained in:
Dmitry Anisimov 2021-11-23 14:45:56 +01:00
parent ac7d2a2dea
commit b877fc39fb
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ std::ostream& statistics(std::ostream& s) const;
Inserts the tree in the <a href="https://graphviz.org/">`Graphviz`</a> format
into the output stream `s`.
*/
std::ostream& print(std::ostream& s) const;
std::ostream& write_graphviz(std::ostream& s) const;
/// @}

View File

@ -51,7 +51,7 @@ void test_print(const std::string filename) {
// Use this command to print in png:
// dot -Tpng tree.graphviz > tree.png
std::ofstream outfile("tree.graphviz");
tree.print(outfile);
tree.write_graphviz(outfile);
assert(tree.root()->num_items() == points.size());
assert(tree.root()->num_nodes() == 8);