| 38 | DOTNode::DOTNode(std::string const &id) : m_id(id) {} |
| 39 | |
| 40 | DOTGraphOutput::DOTGraphOutput(std::ostream &stream) |
| 41 | : m_count(0), m_os(stream), m_treeShape(false) { |
| 42 | auto &root = m_addNode("/"); |
| 43 | std::ostringstream os; |
| 44 | os << root.getID() << "[shape=circle, label=\"root\"];"; |
| 45 | m_outputLineWithId(root.getID(), os.str()); |
| 46 | } |
| 47 | DOTGraphOutput::~DOTGraphOutput() { |
| 48 | m_os << "digraph {\n"; |
| 49 | m_os << "rankdir = LR\n"; |