Jafar
|
The Graph is the root node containing all nodes. More...
#include <Graph.hpp>
Public Member Functions | |
std::string | toDot () const |
Node * | createNode (spaf::Feature *feature, Node *parent) |
Create a node for a given feature with a given parent. | |
const std::list< Node * > & | nodes () const |
Node * | nodeFor (const spaf::Feature *feature) |
void | removeNode (Node *n) |
remove node from the graph and delete it. | |
Private Member Functions | |
void | appendNode (Node *n) |
Add the node to the list of nodes. | |
std::string | edgeToDot (const Edge *edge) const |
std::string | nodeToDot (const Node *node) const |
Private Attributes | |
Private *const | d |
Node* jafar::spafgraph::Graph::createNode | ( | spaf::Feature * | feature, |
Node * | parent | ||
) |
Create a node for a given feature with a given parent.
feature | |
parent | parent of the feature, either a spaf::GroupFeature or this Graph |
Node* jafar::spafgraph::Graph::nodeFor | ( | const spaf::Feature * | feature | ) |
const std::list<Node*>& jafar::spafgraph::Graph::nodes | ( | ) | const |
std::string jafar::spafgraph::Graph::toDot | ( | ) | const |
Generated on Wed Oct 15 2014 00:37:51 for Jafar by doxygen 1.7.6.1 |