Public interface of class 'NodeGraph'. More...
#include <NodeGraph.h>
Related Functions | |
(Note that these are not member functions.) | |
void | NodeGraph_add_children (NodeGraph_ptr self, node_ptr var, const Set_t children) |
Creates edges from "var" node to the nodes listed in the set "children". If parent node (var node)is set on NULL, nodes from children set will have parent node. The parent will be node that contains NULL pointer. NodeGraph_get_parents will not return empty set for those nodes. | |
void | NodeGraph_clear_removed_nodes (NodeGraph_ptr self) |
Clears up all information about removed nodes. | |
NodeGraph_ptr | NodeGraph_create (void) |
The NodeGraph class constructor. | |
void | NodeGraph_destroy (NodeGraph_ptr self) |
The NodeGraph class destructor. | |
Set_t | NodeGraph_get_leaves (const NodeGraph_ptr self) |
Returns the nodes which have the given number of children, but those nodes that have been removed. Set must be freed by the caller. | |
Set_t | NodeGraph_get_parents (const NodeGraph_ptr self, node_ptr child) |
Returns all the parents of a given node. | |
boolean | NodeGraph_is_empty (const NodeGraph_ptr self) |
Returns true if the graph is empty, taking into account of all removed vertices. | |
void | NodeGraph_print (const NodeGraph_ptr self, MasterPrinter_ptr printer, FILE *out) |
Prints out the graph. | |
void | NodeGraph_remove_nodes (NodeGraph_ptr self, const Set_t nodes) |
Public interface of class 'NodeGraph'.
Definition of the public accessor for class NodeGraph
void NodeGraph_add_children | ( | NodeGraph_ptr | self, | |
node_ptr | var, | |||
const Set_t | children | |||
) | [related] |
void NodeGraph_clear_removed_nodes | ( | NodeGraph_ptr | self | ) | [related] |
Clears up all information about removed nodes.
NodeGraph_ptr NodeGraph_create | ( | void | ) | [related] |
The NodeGraph class constructor.
AutomaticStart
The NodeGraph class constructor
void NodeGraph_destroy | ( | NodeGraph_ptr | self | ) | [related] |
Set_t NodeGraph_get_leaves | ( | const NodeGraph_ptr | self | ) | [related] |
Returns the nodes which have the given number of children, but those nodes that have been removed. Set must be freed by the caller.
Set_t NodeGraph_get_parents | ( | const NodeGraph_ptr | self, | |
node_ptr | child | |||
) | [related] |
boolean NodeGraph_is_empty | ( | const NodeGraph_ptr | self | ) | [related] |
Returns true if the graph is empty, taking into account of all removed vertices.
void NodeGraph_print | ( | const NodeGraph_ptr | self, | |
MasterPrinter_ptr | printer, | |||
FILE * | out | |||
) | [related] |
Prints out the graph.
void NodeGraph_remove_nodes | ( | NodeGraph_ptr | self, | |
const Set_t | nodes | |||
) | [related] |