/[ascend]/trunk/base/generic/system/graph.c
ViewVC logotype

Diff of /trunk/base/generic/system/graph.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1349 by jpye, Tue Mar 13 07:26:43 2007 UTC revision 1380 by jpye, Fri Apr 6 04:07:32 2007 UTC
# Line 38  int system_write_graph(slv_system_t sys Line 38  int system_write_graph(slv_system_t sys
38      struct rel_relation **srels;      struct rel_relation **srels;
39      struct var_variable **svars, **ivars;      struct var_variable **svars, **ivars;
40      char *relname, *varname;      char *relname, *varname;
41        
42      CONSOLE_DEBUG("Writing graph...");      CONSOLE_DEBUG("Writing graph...");
43      asc_assert(fp!=NULL);      asc_assert(fp!=NULL);
44    
45        CONSOLE_DEBUG("FP = %p",fp);
46      fprintf(fp,"digraph G{\n");      fprintf(fp,"digraph G{\n");
47    
48      /* first create nodes for the rels */      /* first create nodes for the rels */
# Line 74  int system_write_graph(slv_system_t sys Line 75  int system_write_graph(slv_system_t sys
75      fprintf(fp,"\n\n\t/* incidences */\n\n");      fprintf(fp,"\n\n\t/* incidences */\n\n");
76      for(i=0; i<nsr; ++i){      for(i=0; i<nsr; ++i){
77          if(!rel_apply_filter(srels[i],rfilter))continue;          if(!rel_apply_filter(srels[i],rfilter))continue;
78            
79          ivars = rel_incidence_list(srels[i]);          ivars = rel_incidence_list(srels[i]);
80          niv = rel_n_incidences(srels[i]);          niv = rel_n_incidences(srels[i]);
81    
# Line 90  int system_write_graph(slv_system_t sys Line 91  int system_write_graph(slv_system_t sys
91      CONSOLE_DEBUG("Completed graph output");      CONSOLE_DEBUG("Completed graph output");
92      return 0;      return 0;
93  }  }
           
94    
95        
96    
97    

Legend:
Removed from v.1349  
changed lines
  Added in v.1380

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22