Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::ca_dot_detail Namespace Reference

Functions

std::string quote (const std::string &s)
 
std::string quote_id_if_needed (const std::string &s)
 Return s as a bare DOT identifier when it matches [A-Za-z_][A-Za-z_0-9]*, otherwise return quote(s).
 

Function Documentation

◆ quote()

std::string Aleph::CA::ca_dot_detail::quote ( const std::string &  s)
inline

Definition at line 92 of file ca-dot.H.

References Aleph::blossom_maximum_cardinality_matching(), and out.

Referenced by quote_id_if_needed().

◆ quote_id_if_needed()

std::string Aleph::CA::ca_dot_detail::quote_id_if_needed ( const std::string &  s)
inline

Return s as a bare DOT identifier when it matches [A-Za-z_][A-Za-z_0-9]*, otherwise return quote(s).

The bare form keeps round-trip-friendly output for the default graph_name = "CA" while protecting names that contain spaces or other characters DOT does not allow bare.

Definition at line 110 of file ca-dot.H.

References Aleph::and, Aleph::blossom_maximum_cardinality_matching(), and quote().