From wangxue at ict.ac.cn Wed Apr 15 09:12:16 2009 From: wangxue at ict.ac.cn (=?gb2312?B?zfXRqQ==?=) Date: Wed, 15 Apr 2009 15:12:16 +0800 Subject: [uDraw(Graph)-Users] How to change the edges color? Message-ID: <200904151512159846673@ict.ac.cn> Hi, I have studied Udraw for some time and find it very useful. And now I want to know something about how to change colors. I use "change_node_color("nodenumber","color")" to change node color. But when I use "change_edge_color("edgenumber","color")", there is no change. So how to change the edge color. Thanks. 2009-04-15 ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangxue at ict.ac.cn Wed Apr 15 09:12:16 2009 From: wangxue at ict.ac.cn (=?gb2312?B?zfXRqQ==?=) Date: Wed, 15 Apr 2009 15:12:16 +0800 Subject: [uDraw(Graph)-Users] How to change the edges color? Message-ID: <200904151512159846673@ict.ac.cn> Hi, I have studied Udraw for some time and find it very useful. And now I want to know something about how to change colors. I use "change_node_color("nodenumber","color")" to change node color. But when I use "change_edge_color("edgenumber","color")", there is no change. So how to change the edge color. Thanks. 2009-04-15 ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mawe at informatik.uni-bremen.de Wed Apr 15 09:32:56 2009 From: mawe at informatik.uni-bremen.de (Mattias Werner) Date: Wed, 15 Apr 2009 09:32:56 +0200 Subject: [uDraw(Graph)-Users] How to change the edges color? In-Reply-To: <200904151512159846673@ict.ac.cn> References: <200904151512159846673@ict.ac.cn> Message-ID: <49E58DA8.3020807@informatik.uni-bremen.de> Hello, > I have studied Udraw for some time and find it very useful. And now I > want to know something about how to change colors. > I use "change_node_color("nodenumber","color")" to change node color. > But when I use "change_edge_color("edgenumber","color")", there is no > change. So how to change the edge color. the API command change_node_color is an old command still existing for backward compatibility to version 1.x of uDraw(Graph). It is not recommended to use this command anymore. There is no command change_edge_color, because edge colors didn't exist in that version. Please use the API command graph(change_attr(attr_changes)) instead. http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/api_cmd_graph.html#change_attr Examples are: graph(change_attr([node("nodenumber",[a("COLOR","color")])])) for your change_node_color example above or: graph(change_attr([edge("edgenumber",[a("EDGECOLOR","color")])])) for your change_edge_color example above, or even: graph(change_attr([node("nodenumber",[a("COLOR","color")]),edge("edgenumber",[a("EDGECOLOR","color")])])) for both in one step. Regards, Mattias Werner uDraw(Graph) project -- Dipl. Inform. Mattias Werner Bremen University, FB 3 E-Mail: mawe at informatik.Uni-Bremen.DE WWW: http://www.informatik.uni-bremen.de/~mawe/