24#ifndef __ONERT_DUMPER_DOT_NODE_H__
25#define __ONERT_DUMPER_DOT_NODE_H__
30#include <unordered_map>
57 const static inline std::string
BG_COLORS[8] = {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"};
71 Node(
const std::string &
id);
78 std::string
id()
const {
return _id; }
85 const std::unordered_map<std::string, std::string> &
attributes()
const {
return _attributes; }
92 void setAttribute(
const std::string &key,
const std::string &val);
112 const std::vector<Node *> &
out_edges()
const {
return _out_edges; }
118 std::unordered_map<std::string, std::string> _attributes;
119 std::vector<Node *> _out_edges;
Class that represents a Node in "dot" format.
const std::vector< Node * > & out_edges() const
Return list of out edges.
void addOutEdge(Node *dotinfo)
Add an edge in the graph, which is an outgoing edge.
static const std::string DEFAULT_COLORSCHEME
void setAttribute(const std::string &key, const std::string &val)
Store an attribute with key-value pair.
std::string id() const
return id
std::string getAttribute(const std::string &key)
Get the attributte value that is associated with key.
const std::unordered_map< std::string, std::string > & attributes() const
return attributes
static const std::string DEFAULT_FILLCOLOR
virtual ~Node()=default
Destroy the Node object.
static const std::string BG_COLORS[8]