model_server/edge/src/aset_graph.cxx
//  build the list of nodes and edges; set headnode
//  edgenode, tailnode, tailedge of the graph
build the list of nodes and edges; set headnode
edgenode, tailnode, tailedge of the graph
build the list of nodes and edges ; set headnode edgenode tailnode tailedge of the graph
void  edge_build_root(aset_graph *graph_node,
                          viewSymbolNodePtr curr_view)
{
    aset_node *tmp_node;
    Initialize(edge_build_root);
    while ( curr_view ) {
        if (!curr_view->ignore_for_routing() && 
            !viewnode_is_hidden (curr_view)){
	    if (curr_view->viewIsKindOf(viewConnectorType) )
	         edge_create_connector(graph_node, 
		     checked_cast(viewConnectionNode, curr_view));
	    else if (curr_view->viewIsA(viewERDClassType) ||
		     curr_view->viewIsA(viewERDBoxType) ||
		     curr_view->viewIsKindOf(viewMultiType) ||
		     curr_view->viewIsA(viewGroupType) ||
		     curr_view->viewIsA(viewSymbolType))
		 tmp_node = edge_create_node(graph_node, curr_view);
        }
        curr_view = checked_cast(viewSymbolNode, curr_view->get_next_symbol());
    }
    return;
}
void edge_build_root ( aset_graph * graph_node , viewSymbolNodePtr curr_view ) { aset_node * tmp_node ; Initialize ( edge_build_root ) ; while ( curr_view ) { if ( ! curr_view -> ignore_for_routing ( ) && ! viewnode_is_hidden ( curr_view ) ) { if ( curr_view -> viewIsKindOf ( viewConnectorType ) ) edge_create_connector ( graph_node , checked_cast ( viewConnectionNode , curr_view ) ) ; else if ( curr_view -> viewIsA ( viewERDClassType ) || curr_view -> viewIsA ( viewERDBoxType ) || curr_view -> viewIsKindOf ( viewMultiType ) || curr_view -> viewIsA ( viewGroupType ) || curr_view -> viewIsA ( viewSymbolType ) ) tmp_node = edge_create_node ( graph_node , curr_view ) ; } curr_view = checked_cast ( viewSymbolNode , curr_view -> get_next_symbol ( ) ) ; } return ; }
build the list of nodes and edges; set headnode
edgenode, tailnode, tailedge of the graph
build the list of nodes and edges ; set headnode edgenode tailnode tailedge of the graph
//--------- Executable Code ------------------------------ //  create an EDGE node out of view_node; insert it into  //  all graph lists. // regular viewSymbol node //      get the next view node if not collapsed