model_server/gedge/src/dummy.cxx
/* 
 * MakeImproper
 *	Remove all the dummy nodes and restore the long edges
 */
MakeImproper
Remove all the dummy nodes and restore the long edges
MakeImproper Remove all the dummy nodes and restore the long edges
void 
MakeImproper(graph* g)
{
    edge* e;
    node* n;
    for (n = g->getheadnode(); n != 0; n = n->getnextnode()) {
        if (g->getlayouttype() == LAYOUT_SUGICONSTR) n->stable = 0;
  	if (n->isdummy(1)) 
          g->delete_node(n);
    }
    for (e = g->getheadedge(); e != 0; e = e->getnextedge()) {
    }
    g->setproper (0);
    g->setdirty (1);
}
void MakeImproper ( graph * g ) { edge * e ; node * n ; for ( n = g -> getheadnode ( ) ; n != 0 ; n = n -> getnextnode ( ) ) { if ( g -> getlayouttype ( ) == LAYOUT_SUGICONSTR ) n -> stable = 0 ; if ( n -> isdummy ( 1 ) ) g -> delete_node ( n ) ; } for ( e = g -> getheadedge ( ) ; e != 0 ; e = e -> getnextedge ( ) ) { } g -> setproper ( 0 ) ; g -> setdirty ( 1 ) ; }
MakeImproper
      Remove all the dummy nodes and restore the long edges
MakeImproper Remove all the dummy nodes and restore the long edges
/*
    if (! g->isproper ())
	return;
*/