Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::pc_tree::uid_utils Namespace Reference

Functions that can be passed to PCTree::uniqueID() More...

Functions

bool compareNodesByID (PCNode *a, PCNode *b)
 Sort nodes by ascending index. More...
 
void leafToID (std::ostream &os, PCNode *n, int pos)
 Print the index of a node n if it is a leaf. More...
 
void leafToPosition (std::ostream &os, PCNode *n, int pos)
 Print the position pos of a node n if it is a leaf. More...
 
void nodeToID (std::ostream &os, PCNode *n, int pos)
 Print the index of a node n. More...
 
void nodeToPosition (std::ostream &os, PCNode *n, int pos)
 Print the position pos of a node n. More...
 

Detailed Description

Functions that can be passed to PCTree::uniqueID()

Function Documentation

◆ compareNodesByID()

bool ogdf::pc_tree::uid_utils::compareNodesByID ( PCNode a,
PCNode b 
)

Sort nodes by ascending index.

◆ leafToID()

void ogdf::pc_tree::uid_utils::leafToID ( std::ostream &  os,
PCNode n,
int  pos 
)

Print the index of a node n if it is a leaf.

◆ leafToPosition()

void ogdf::pc_tree::uid_utils::leafToPosition ( std::ostream &  os,
PCNode n,
int  pos 
)

Print the position pos of a node n if it is a leaf.

◆ nodeToID()

void ogdf::pc_tree::uid_utils::nodeToID ( std::ostream &  os,
PCNode n,
int  pos 
)

Print the index of a node n.

◆ nodeToPosition()

void ogdf::pc_tree::uid_utils::nodeToPosition ( std::ostream &  os,
PCNode n,
int  pos 
)

Print the position pos of a node n.