DOT format parser class.
More...
#include <ogdf/fileformats/DotParser.h>
DOT format parser class.
Provides methods for reading graphs in the DOT format. This class is actually just a wrapper/composer for Ast and Lexer classes.
- See also
- dot::Lexer
-
dot::Ast
Definition at line 325 of file DotParser.h.
◆ Parser()
ogdf::dot::Parser::Parser |
( |
std::istream & |
in | ) |
|
|
explicit |
Initializes parser class with given input (but does nothing to it).
◆ read() [1/4]
bool ogdf::dot::Parser::read |
( |
Graph & |
G | ) |
|
◆ read() [2/4]
◆ read() [3/4]
◆ read() [4/4]
◆ readGraph()
◆ requestNode()
Perfoms a node query, returning node for given attribute.
Returns a node with given id in a graph. If node is requested for the first time then Graph::newNode is called and node is initialized with default attributes and placed in proper cluster (through data
).
- Parameters
-
G | Graph whom node is requested. |
GA | GraphAttributes for given graph, ignored if nullptr . |
C | ClusterGraph for given graph, ignored if nullptr . |
data | Data about current subgraph. |
id | Identifier of requested node. |
- Returns
- Requested node.
◆ m_in
std::istream& ogdf::dot::Parser::m_in |
|
private |
◆ m_nodeId
The documentation for this class was generated from the following file: