Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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.
 
SubgraphData withCluster (cluster newRootCluster) const
 Returns almost the same structure, but with root cluster.
 
SubgraphData withDefaults (std::vector< Ast::AttrList * > &newNodeDefaults, std::vector< Ast::AttrList * > &newEdgeDefaults) const
 Returns almost the same structure, but with new defaults.
 
SubgraphData withNodes (std::set< node > &newNodes) const
 Returns almost the same structure, but with new node list.
 

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 362 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 365 of file DotParser.h.

◆ nodeDefaults

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

Definition at line 364 of file DotParser.h.

◆ nodes

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

Definition at line 366 of file DotParser.h.

◆ rootCluster

cluster ogdf::dot::SubgraphData::rootCluster

Definition at line 363 of file DotParser.h.


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