コード例 #1
0
// print the tree
void OBBTreeNavigator::print_tree() {
  // output file
  std::ofstream dotfile ("graph.dot");
  dotfile << "digraph graphname { " << std::endl;
  print_node(rootBox,dotfile);
  // navigate around the tree printing each node and its children
  dotfile << "} " << std::endl;
}
コード例 #2
0
ファイル: graph.hpp プロジェクト: quarkslab/binmap
 void dot(boost::filesystem::path const &path) const {
   std::ofstream dotfile(path.c_str());
   boost::write_graphviz(
       dotfile, graph_,
       boost::make_label_writer(boost::get(boost::vertex_name_t(), graph_)));
 }