model_server/dagraph/src/DAGraph.cxx
//
// returns: -1: node is not deleted, 0: the node is deleted
//
-1: node is not deleted, 0: the node is deleted
- 1 : node is not deleted 0 : the node is deleted
int
DAGraph::remove0ref(DGNodeData * x_sym, int ref_val)
{
    int ret_val = -1;
    if (x_sym!=0 && ref_val==0) {
	if (!search(x_sym)) {
	    ret_val = 0;
	    delete x_sym;
	}
    }
    return ret_val;
}
int DAGraph :: remove0ref ( DGNodeData * x_sym , int ref_val ) { int ret_val = -1 ; if ( x_sym != 0 && ref_val == 0 ) { if ( ! search ( x_sym ) ) { ret_val = 0 ; delete x_sym ; } } return ret_val ; }
returns: -1: node is not deleted, 0: the node is deleted
returns : - 1 : node is not deleted 0 : the node is deleted