[Lemon-user] question about write data to lgf file

ZHANG Long zhangloong at gmail.com
Wed Jun 1 10:09:52 CEST 2011


Thanks you for your quick answer. I tried you first method:

string vessel_to_str(vessel v)
{
     string s;
     stringstream out;
     out <<v.Temp<<"    "<<v.Vol;
     s = out.str();
     return s;
}

     digraphWriter(g, "out.lgf")
           .nodeMap("vessel_pr", vessel_property, vessel_to_str)
           .run();

But there are errors when compile it. Am i doing it wrongly?

Thank you very much.



More information about the Lemon-user mailing list