Template Class DotGraph

Template Parameter Order

  1. typename Allocator

Class Documentation

template<typename Allocator>
class DotGraph

Public Functions

inline explicit DotGraph(bool directed)
inline void add_child_to_node(frg::string_view parent, frg::string_view child, frg::string_view child_label)

Adds a child node to a parent.

Parameters:
  • parent – The parent to add a child to

  • child – The child’s node id

  • child_label – The child’s label

inline void add_node(frg::string_view name, frg::string_view label)
inline frg::string<Allocator> generate()

Generates the DOT graph string, NOTE: this can only be called once.

Returns:

The generated string

inline frg::string<Allocator> get_str()

Gets the DOT graph string.

Returns:

The string