#include <Esambl.h>
Public Member Functions | |
| GraphNode () | |
| GraphNode (int id) | |
| GraphNode (int id, int olp, int cont) | |
| GraphNode (const GraphNode &gn) | |
| GraphNode & | operator= (const GraphNode &gn) |
| bool | operator< (const GraphNode &gn) const |
| void | setId (int id) |
| void | setValence (int o, int c) |
| void | setIdValence (int id, int olp, int cont) |
| ostream & | show (ostream &ous) const |
| void | setNull () |
| void | setHead () |
| void | setChild (GraphNode *p) |
| bool | canBeHead () const |
Public Attributes | |
| Color | c |
| GraphNode * | parent |
| int | distance |
| int | idx |
| Valence | val |
| int | inassembly |
Friends | |
| ostream & | operator<< (ostream &ous, const GraphNode &gn) |
| GraphNode::GraphNode | ( | ) | [inline] |
Here I use -1 for infinity could INF
| GraphNode::GraphNode | ( | int | id | ) | [inline] |
| GraphNode::GraphNode | ( | int | id, | |
| int | olp, | |||
| int | cont | |||
| ) | [inline] |
| GraphNode::GraphNode | ( | const GraphNode & | gn | ) |
| void GraphNode::setId | ( | int | id | ) | [inline] |
References idx.
| void GraphNode::setValence | ( | int | o, | |
| int | c | |||
| ) | [inline] |
References Valence::set(), and val.
| void GraphNode::setIdValence | ( | int | id, | |
| int | olp, | |||
| int | cont | |||
| ) | [inline] |
References idx, Valence::set(), and val.
| ostream & GraphNode::show | ( | ostream & | ous | ) | const |
| void GraphNode::setHead | ( | ) |
color to gray, distance to 0, parent to 0 increment inassembly by one
References c, distance, gray, inassembly, and parent.
| void GraphNode::setChild | ( | GraphNode * | p | ) |
| bool GraphNode::canBeHead | ( | ) | const [inline] |
References c, inassembly, and white.
| ostream& operator<< | ( | ostream & | ous, | |
| const GraphNode & | gn | |||
| ) | [friend] |
Referenced by Graph::assembleOneRound(), canBeHead(), GraphNode(), operator=(), setChild(), setHead(), setNull(), and show().
Referenced by GraphNode(), operator=(), setChild(), setHead(), setNull(), and show().
Referenced by GraphNode(), operator=(), setChild(), setHead(), setNull(), and show().
| int GraphNode::idx |
Referenced by Graph::assembleOneRound(), GraphNode(), operator=(), setId(), setIdValence(), and show().
Referenced by GraphNode(), lessGraphNodePtr::operator()(), operator<(), operator=(), setIdValence(), setValence(), and show().
Referenced by canBeHead(), GraphNode(), operator=(), setChild(), setHead(), and show().
1.5.6