From son.dot at gmail.com Tue Nov 14 05:35:31 2006 From: son.dot at gmail.com (Son Dot) Date: Tue, 14 Nov 2006 11:35:31 +0700 Subject: [uDraw(Graph)-Users] About drawing in uDraw Message-ID: Hi All, I just view the API command, but it seem lack of drawing function. For example, is there some api provided to draw a polygon inside window? for detail, I want to draw a table which contained 8 nodes, any body could suggestion me? Thanks and best regards, Sontk From mawe at informatik.uni-bremen.de Mon Nov 20 09:25:30 2006 From: mawe at informatik.uni-bremen.de (Mattias Werner) Date: Mon, 20 Nov 2006 09:25:30 +0100 Subject: [uDraw(Graph)-Users] About drawing in uDraw In-Reply-To: References: Message-ID: <4561667A.8060101@informatik.uni-bremen.de> Hello, first of all please excuse my late answer but we had mail server problems the whole last week. Son Dot schrieb: > I just view the API command, but it seem lack of drawing function. For > example, is there some api provided to draw a polygon inside window? > for detail, I want to draw a table which contained 8 nodes, any body > could suggestion me? I don't know what you mean by drawing functions. You have to specify the graph and set attributes for each node and edge. The layout algorithm than displays (draws) your graph. There is no way to draw a table. uDraw(Graph) is only for graphs and the algorithm draws the graphs as directed acyclic graphs (DAG). 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/ From son.dot at gmail.com Mon Nov 20 10:23:29 2006 From: son.dot at gmail.com (Son Dot) Date: Mon, 20 Nov 2006 16:23:29 +0700 Subject: [uDraw(Graph)-Users] About drawing in uDraw In-Reply-To: <4561667A.8060101@informatik.uni-bremen.de> References: <4561667A.8060101@informatik.uni-bremen.de> Message-ID: Hi, I understood the issue. Regard to "term representation format", I found out an issues like this : I compiled the sample/simpleclient/sample_pipe . Then run the excutable file (say 'sample_pipe') and insert some nodes. But after saving graph file under both *.udg file and *.status files, I opened them with a text editor and could not find out the "term representation format". The files I opened have structure which differ from when I open the sample graph files in directory $UDG_HOME/samples/graphs with a text editor. Just though there is a problem with format in application, I try to creat a graph file by using uDrawGraph with option -startappl graphedit. But there is the same result, the file *.udg and *.status still have the structure which differ from "term representation format" syntax. Pls give me more detail about this. Regards, SonTK On 11/20/06, Mattias Werner wrote: > Hello, > > first of all please excuse my late answer but we had mail server > problems the whole last week. > > Son Dot schrieb: > > I just view the API command, but it seem lack of drawing function. For > > example, is there some api provided to draw a polygon inside window? > > for detail, I want to draw a table which contained 8 nodes, any body > > could suggestion me? > > I don't know what you mean by drawing functions. You have to specify the > graph and set attributes for each node and edge. The layout algorithm > than displays (draws) your graph. There is no way to draw a table. > uDraw(Graph) is only for graphs and the algorithm draws the graphs as > directed acyclic graphs (DAG). > > 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/ > From mawe at informatik.uni-bremen.de Mon Nov 20 10:33:44 2006 From: mawe at informatik.uni-bremen.de (Mattias Werner) Date: Mon, 20 Nov 2006 10:33:44 +0100 Subject: [uDraw(Graph)-Users] About drawing in uDraw In-Reply-To: References: <4561667A.8060101@informatik.uni-bremen.de> Message-ID: <45617678.9060609@informatik.uni-bremen.de> Son Dot schrieb: > But after saving graph file under both *.udg file and *.status files, > I opened them with a text editor and could not find out the "term > representation format". *.udg is the term representation format, which is explained here: http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/term.html http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/api_param.html#graphterm Start with "graphterm" in the syntax. > The files I opened have structure which differ from when I open the > sample graph files in directory $UDG_HOME/samples/graphs with a text > editor. Always use the *.udg files, *.status is an internal format. 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/ From son.dot at gmail.com Mon Nov 20 12:26:09 2006 From: son.dot at gmail.com (Son Dot) Date: Mon, 20 Nov 2006 18:26:09 +0700 Subject: [uDraw(Graph)-Users] About drawing in uDraw In-Reply-To: <45617678.9060609@informatik.uni-bremen.de> References: <4561667A.8060101@informatik.uni-bremen.de> <45617678.9060609@informatik.uni-bremen.de> Message-ID: Hi, Thanks for your quickly answer. It mean that, I have to program application on a way to send or update graph in term representation format, after that I could have the udg file with normal term presentation, Is my understand correct? If it is correct, could you pls give me the example code using graph term? I write the code, but normally using update(new_node...). BTW, I still concern about the issue, why the graph file *.udg I created by grapheditor is diiferent in structure with Term representation format. for example, the file alway start with: [save_uDGV_3_1(false,25,true,graph(array(800,[],[e(1)(b_node("mem_id0",""... Regards, SonTK On 11/20/06, Mattias Werner wrote: > Son Dot schrieb: > > But after saving graph file under both *.udg file and *.status files, > > I opened them with a text editor and could not find out the "term > > representation format". > > *.udg is the term representation format, which is explained here: > http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/term.html > http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/api_param.html#graphterm > > Start with "graphterm" in the syntax. > > > The files I opened have structure which differ from when I open the > > sample graph files in directory $UDG_HOME/samples/graphs with a text > > editor. > > Always use the *.udg files, *.status is an internal format. > > 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/ >