Changeset b97a556 for src/dgp/sgraph.cc


Ignore:
Timestamp:
11/19/13 10:07:16 (11 years ago)
Author:
Tomasz Obrebski <obrebski@…>
Branches:
master
Children:
b30c30d
Parents:
e0cd003
git-author:
Tomasz Obrebski <to@…> (11/19/13 09:55:00)
git-committer:
Tomasz Obrebski <obrebski@…> (11/19/13 10:07:16)
Message:

drobiazgi w dgp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/dgp/sgraph.cc

    r3b02b04 rb97a556  
    113113    for(vector<Arc>::iterator h=node.heads.begin(); h!=node.heads.end(); ++h) 
    114114    { 
    115       if(cont) buf+=sprintf(buf,","); else cont=true; 
    116       buf+=sprintf(buf,"++%s-%d(%d~%d)",h->role.str(),h->dst,h->headanc,h->depanc); 
     115      // if(cont) buf+=sprintf(buf,","); else cont=true; 
     116      buf+=sprintf(buf,"(++%s:%d)",h->role.str(),h->dst); 
     117      // buf+=sprintf(buf,"++%s-%d(%d~%d)",h->role.str(),h->dst,h->headanc,h->depanc); 
     118      // buf+=sprintf(buf,"(<-%s-%d)",h->role.str(),h->dst); 
    117119    } 
    118120 
     
    121123    { 
    122124      //      if(! nodes[d->dst].saturated()) continue; // NIE DRUKUJ NIENASYCONYCH PODRZEDNIKOW 
    123       if(cont) buf+=sprintf(buf,","); else cont=true; 
    124       buf+=sprintf(buf,"--%s-%d(%d~%d)",d->role.str(),d->dst,d->headanc,d->depanc); 
     125      // if(cont) buf+=sprintf(buf,","); else cont=true; 
     126      buf+=sprintf(buf,"(--%s:%d)",d->role.str(),d->dst); 
     127      // buf+=sprintf(buf,"--%s-%d(%d~%d)",d->role.str(),d->dst,d->headanc,d->depanc); 
     128      // buf+=sprintf(buf,"(-%s->%d)",d->role.str(),d->dst); 
    125129    } 
    126130   
Note: See TracChangeset for help on using the changeset viewer.