Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::dot::SubgraphData Struct Reference

A helper structure containing information for recursive graph reading. More...

#include <ogdf/fileformats/DotParser.h>

Public Member Functions

 SubgraphData (cluster root, std::vector< Ast::AttrList * > &nodeDefaultsVector, std::vector< Ast::AttrList * > &edgeDefaultsVector, std::set< node > &nodeSet)
 Initializes structure with given data. More...
 
SubgraphData withCluster (cluster newRootCluster) const
 Returns almost the same structure, but with root cluster. More...
 
SubgraphData withDefaults (std::vector< Ast::AttrList * > &newNodeDefaults, std::vector< Ast::AttrList * > &newEdgeDefaults) const
 Returns almost the same structure, but with new defaults. More...
 
SubgraphData withNodes (std::set< node > &newNodes) const
 Returns almost the same structure, but with new node list. More...
 

Public Attributes

std::vector< Ast::AttrList * > & edgeDefaults
 
std::vector< Ast::AttrList * > & nodeDefaults
 
std::set< node > & nodes
 
cluster rootCluster
 

Detailed Description

A helper structure containing information for recursive graph reading.

Definition at line 437 of file DotParser.h.

Constructor & Destructor Documentation

◆ SubgraphData()

ogdf::dot::SubgraphData::SubgraphData ( cluster  root,
std::vector< Ast::AttrList * > &  nodeDefaultsVector,
std::vector< Ast::AttrList * > &  edgeDefaultsVector,
std::set< node > &  nodeSet 
)

Initializes structure with given data.

Parameters
rootRoot cluster of current subgraph.
nodeDefaultsVectorNode default attributes.
edgeDefaultsVectorEdge default attributes.
nodeSetNodes in current subgraph.

Member Function Documentation

◆ withCluster()

SubgraphData ogdf::dot::SubgraphData::withCluster ( cluster  newRootCluster) const

Returns almost the same structure, but with root cluster.

◆ withDefaults()

SubgraphData ogdf::dot::SubgraphData::withDefaults ( std::vector< Ast::AttrList * > &  newNodeDefaults,
std::vector< Ast::AttrList * > &  newEdgeDefaults 
) const

Returns almost the same structure, but with new defaults.

◆ withNodes()

SubgraphData ogdf::dot::SubgraphData::withNodes ( std::set< node > &  newNodes) const

Returns almost the same structure, but with new node list.

Member Data Documentation

◆ edgeDefaults

std::vector<Ast::AttrList *>& ogdf::dot::SubgraphData::edgeDefaults

Definition at line 440 of file DotParser.h.

◆ nodeDefaults

std::vector<Ast::AttrList *>& ogdf::dot::SubgraphData::nodeDefaults

Definition at line 439 of file DotParser.h.

◆ nodes

std::set<node>& ogdf::dot::SubgraphData::nodes

Definition at line 441 of file DotParser.h.

◆ rootCluster

cluster ogdf::dot::SubgraphData::rootCluster

Definition at line 438 of file DotParser.h.


The documentation for this struct was generated from the following file: