August 2017
Intermediate to advanced
438 pages
14h 19m
English
Visualization is done in two phases. In the first phase, we make our program output the graph's description in a text format suitable for Graphviz. In the second phase, we import the output from the first step to the visualization tool. The numbered steps in this recipe are all about the first phase.
#include <boost/graph/graphviz.hpp>std::ostream& operator<<(std::ostream& out, const graph_type& g) { detail::vertex_writer<graph_type> vw(g); boost::write_graphviz(out, g, vw); return out;}
#include <iosfwd>namespace detail { template <class GraphT> ...Read now
Unlock full access