model_server/dagraph/src/DAGraph.cxx
//
// returns: -1: error, 0: the node is deleted
//
// NOTE: this routine does not consider any context that a node may be in; it
//       is responsible for physical removal of the specified node
//
-1: error, 0: the node is deleted
NOTE: this routine does not consider any context that a node may be in; it
is responsible for physical removal of the specified node
- 1 : error 0 : the node is deleted NOTE : this routine does not consider any context that a node may be in ; it is responsible for physical removal of the specified node
int
DAGraph::deleteNode(DGNode * node)
{
    int ret_val = -1;
    if (node) {
	if (ordered)
	    ordered->remove(node->data);
	delete node;
	ret_val = 0;
    }
    return ret_val;
}
int DAGraph :: deleteNode ( DGNode * node ) { int ret_val = -1 ; if ( node ) { if ( ordered ) ordered -> remove ( node -> data ) ; delete node ; ret_val = 0 ; } return ret_val ; }
returns: -1: error, 0: the node is deleted
NOTE: this routine does not consider any context that a node may be in; it
is responsible for physical removal of the specified node
returns : - 1 : error 0 : the node is deleted NOTE : this routine does not consider any context that a node may be in ; it is responsible for physical removal of the specified node