23 namespace TSnapDetail {
33 template<
class PGraph>
37 SaveGViz(Graph, GraphFNm, Desc, NodeLabels, NIdColorH);
41 template<
class PGraph>
45 SaveGViz(Graph, GraphFNm, Desc, NodeLabelH);
void DrawGViz(const PGraph &Graph, const TGVizLayout &Layout, const TStr &PltFNm, const TStr &Desc=TStr(), const bool &NodeLabels=false, const TIntStrH &NIdColorH=TIntStrH())
Draws a given Graph using a selected GraphViz Layout engine with nodes colored.
void SaveGViz(const PGraph &Graph, const TStr &OutFNm, const TStr &Desc=TStr(), const bool &NodeLabels=false, const TIntStrH &NIdColorH=TIntStrH())
Save a graph in GraphVizp .DOT format.
TStr GetSubStr(const int &BChN, const int &EChN) const
THash< TInt, TStr > TIntStrH
void GVizDoLayout(const TStr &GraphInFNm, TStr OutFNm, const TGVizLayout &Layout)
Runs GraphViz layout engine over a graph saved in the file GraphInFNm with output saved to OutFNm...
TGVizLayout_
GraphViz Layout Engines.
enum TGVizLayout_ TGVizLayout
GraphViz Layout Engines.
TStr GVizGetLayoutStr(const TGVizLayout &Layout)
Generates the GraphViz command string based on the selected Layout engine.