Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_IO_GRAPHVIZWRITER_HPP
2 #define GRAPH_ANALYSIS_IO_GRAPHVIZWRITER_HPP
4 #include "../GraphIO.hpp"
75 std::string mRenderer;
80 GraphvizWriter(
const std::string& layout =
"dot",
const std::string& renderer =
"dot");
94 void write(
const std::string& filename,
const BaseGraph& graph)
const;
106 #endif // GRAPH_ANALYSIS_IO_GRAPHVIZWRITER_HPP
shared_ptr< GraphvizStyle > Ptr
Definition: GraphvizStyle.hpp:19
void setStyle(const GraphvizStyle::Ptr &style)
Definition: GraphvizWriter.hpp:87
General Graph template that should be implemented to wrap specific graph library functionality We ass...
Definition: BaseGraph.hpp:27
Interface for Writer implementations that perform custom graph serialization.
Definition: GraphIO.hpp:30
graphviz based graph renderer
Definition: GraphvizWriter.hpp:70
~GraphvizWriter()
destructor
Definition: GraphvizWriter.cpp:14
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
void write(const std::string &filename, const BaseGraph &graph) const
outputs the given graph to the given file
Definition: GraphvizWriter.cpp:17
GraphvizWriter(const std::string &layout="dot", const std::string &renderer="dot")
constructor
Definition: GraphvizWriter.cpp:8