24#ifndef __ONERT_DUMPER_DOT_NODE_H__
25#define __ONERT_DUMPER_DOT_NODE_H__
30#include <unordered_map>
74 Node(
const std::string &
id);
81 std::string
id()
const {
return _id; }
88 const std::unordered_map<std::string, std::string> &
attributes()
const {
return _attributes; }
95 void setAttribute(
const std::string &key,
const std::string &val);
115 const std::vector<Node *> &
out_edges()
const {
return _out_edges; }
119 std::unordered_map<std::string, std::string> _attributes;
120 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
static const std::string BG_COLORS[8]
virtual ~Node()=default
Destroy the Node object.