From: Mrunal G. <mru...@gm...> - 2011-10-25 12:49:01
|
Ok. I think I found the solution to the problem I mentioned below. I did not think it this random retrieval way, while posting the query below. I was thinking only in serial retrieval way from svg file. Posting it here just for reference for others in case needed. Using method getNode(title) from the LogicalStructure lstruct. LNode testNode = grMngr.lstruct.getNode("n0"); As long as "n0" is the first node in the dot file representation, above instruction will give me back the first root node from the lstruct using which I can traverse in the entire list of nodes. I think I wont be having any more question now, that this thing is solved. Once again I appreciate your patience and help in detailed manner. Thank you, Mrunal On Mon, Oct 24, 2011 at 11:55 PM, Mrunal Gawade <mru...@gm...>wrote: > Thank you for your replies. > > Another query related to parsing. > > I have noted following for this scenario. Given a input dot file which is > loaded using both dot and svg pipeline. > > 1. svg file generated in tmp directory differs in the sequence in which > node numbers and their labels appear with input dot file > 2. dot file generated in tmp directory has same sequence for nodes as in > the original input dot file > > For example. If input dot file has a sequence of nodes 1,2,3,4,5,6,7,8 as > they appear linearly in dot file. > > 1. svg file generated changes this sequence and it could be any thing like > 1,2,3,5,7,8,4 > 2. dot file generated keeps the sequence same that is 1,2,3,4,5,6,7,8. > > In continuation with the same, when "lstruct" in buildLogicalStructure is > referred in the debugger, the sequence of nodes that appear there is totally > different. i.e. it could be as well be something like 8,7,1,2,3,4,5 etc. > > However, the nodes accessed using "graph" structure accessed in dot > pipeline provides exact correct sequence as is present in the dot file i.e. > 1,2,3,4,5,6,7,8. > > I was able to access "lstruct" individual nodes glyphs using gl = > lstruct.nodes[i].getGlyphs(); in a loop, however since "lstruct" breaks the > sequence totally, * I am not able to understand how to find the starting > node, i.e. 1 in the above case, or the first node present in the dot file. > * > > I used a test code such as below to highlight the nodes as they are read > from the lstruct sequentially. The actual functionality needed is a > permanent change of color instead of highlight of nodes as they are > traversed and I am still experimenting with this. > > for (int i=0;i<grMngr.gl.length;i++){ > grMngr.mainView.centerOnGlyph(grMngr.gl[i], > grMngr.mSpace.getCamera(0), ConfigManager.ANIM_MOVE_LENGTH, true, > ConfigManager.MAG_FACTOR);// * 1.5f); > > grMngr.highlight(grMngr.gl[i]); > } > grMngr.mainView.repaint(); > > > These graph nodes will be combined with a trace, so the sequentiality is > the crux of display, since I will be parallelly reading a trace file > sequentially to match it here. > > Please guide. > > > Thank you, > Mrunal > > > > > > > > On Mon, Oct 24, 2011 at 5:43 PM, Emmanuel Pietriga < > Emm...@lr...> wrote: > >> >> On 24 oct. 2011, at 10:29, Mrunal Gawade <mru...@gm...> wrote: >> >> One quick question based on one of the sentences you mentioned below. >> >> On Fri, Oct 21, 2011 at 1:45 PM, Emmanuel Pietriga < >>>> emm...@in...> wrote: >>>> >>>>> When using the SVG pipeline, ZGRViewer tries to reconstruct the logical >>>>> structure of the graph based on the information provided in the SVG. This >>>>> can fail sometimes for complex graphs that contain subgraphs, but for graphs >>>>> such as yours it should work, I believe (it works fine with the example file >>>>> you provided). >>>>> >>>>> The highest number of nodes that are seen in the graphs I am trying to >> render are upto 250k. Do you think there could be some problem based on the >> sentence "This can fail sometimes for complex graphs ................". >> >> >> >> Unlikely, provided the structure remains conceptually simple. Size per se >> should not be a problem. However, 250knodes might be more than what we can >> handle in terms of smooth navigation / refresh rate. >> >> >> (sent from phone) >> -- >> Emmanuel Pietriga >> INRIA Saclay - In Situ >> http://pages.saclay.inria.fr/emmanuel.pietriga >> >> >> >> >> >> Regards, >> Mrunal >> >> >> >> On 20 oct. 2011, at 22:11, Mrunal Gawade wrote: >>>>> >>>>> > Thanks for the quick reply. >>>>> > >>>>> > I am not able to understand how to extract graph information from the >>>>> svgpipeline. In case of dot pipeline I am able to get the root of the graph >>>>> during the loading of dot file, using which I was planning to navigate in >>>>> the graph. However, I am not understanding how to navigate using svg because >>>>> it does not directly expose node information the way dot exposes. >>>>> > >>>>> > This is what I have to do. Our use case consists of database >>>>> execution plans which are represented graphically based on their execution >>>>> trace. So we might generated graphs with nodes upto 250k. We want to create >>>>> a dynamic ability to graphically view our textual trace of instructions by >>>>> mapping the contents of the dot file nodes to equivalent parameters in the >>>>> trace file instructions. >>>>> > >>>>> > For this, I am planning to use two << , >> type buttons on click of >>>>> which the trace replay will start from the starting node in the dot file. >>>>> Each click will take me to the next node in the graph. Which next node to >>>>> select information will come from the trace file execution we have. pc field >>>>> in trace file matches to the node number in dot file. Views will be adjusted >>>>> accordingly to match zoom level and movement across graphs accordingly. So >>>>> for example it might happen that the first starting node is at the top of >>>>> the graph, and the next node in the execution is at the bottom. So on >>>>> clicking next button, I would be required to go to the end of the graph at >>>>> next node. And this thing will continue till trace instructions gets over. >>>>> > >>>>> > The attached file contains a sample dot file, a sample pdf file for >>>>> graph output, and a sample trace file. Thanks for your time and help. I >>>>> sincerely appreciate it. >>>>> > >>>>> > >>>>> > Thanks, >>>>> > Mrunal >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > On Thu, Oct 20, 2011 at 11:48 PM, Emmanuel Pietriga < >>>>> emm...@in...> wrote: >>>>> > Hi, >>>>> > >>>>> > Can you end us an example DOT file to reproduce the error? Note that >>>>> the DOT pipeline was written 6 years ago and hasn't really been maintained >>>>> since. For now the SVG pipeline is the preferred way. >>>>> > >>>>> > Emmanuel >>>>> > -- >>>>> > Emmanuel Pietriga >>>>> > INRIA Saclay - In Situ >>>>> > http://pages.saclay.inria.fr/emmanuel.pietriga >>>>> > >>>>> > On 20 oct. 2011, at 19:40, Mrunal Gawade wrote: >>>>> > >>>>> > > Hi, >>>>> > > >>>>> > > Thank you for creating such a wonderful program. >>>>> > > >>>>> > > I am trying to use this program to display trace information from a >>>>> database execution engines query plan. So I am planning to do some >>>>> modifications to it in terms of combining the trace labels with graph labels >>>>> to browse the graph manually (using newly added slider buttons). >>>>> > > >>>>> > > I am new to the zgrviewer and I am trying to load dot files through >>>>> dot pipeline (experimental). However, it fails saying "An error occurred >>>>> while parsing this DOT file" and then the nodes without edges are displayed. >>>>> I tried debugging the code base. This is an exception that is thrown by >>>>> DisplayDOT function, when dot file is tried to load. >>>>> > > >>>>> > > Could you please comment why I am facing such error? Is there some >>>>> error in parsing. I am able to see the graph nodes listed in the "graph" >>>>> variables "nodes" list. >>>>> > > >>>>> > > >>>>> > > Thank you, >>>>> > > Mrunal >>>>> > > >>>>> > > >>>>> ------------------------------------------------------------------------------ >>>>> > > The demand for IT networking professionals continues to grow, and >>>>> the >>>>> > > demand for specialized networking skills is growing even more >>>>> rapidly. >>>>> > > Take a complimentary Learning@Cisco Self-Assessment and learn >>>>> > > about Cisco certifications, training, and career opportunities. >>>>> > > >>>>> http://p.sf.net/sfu/cisco-dev2dev_______________________________________________ >>>>> > > zvtm-devel mailing list >>>>> > > zvt...@li... >>>>> > > https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>>> > >>>>> > >>>>> > >>>>> ------------------------------------------------------------------------------ >>>>> > The demand for IT networking professionals continues to grow, and the >>>>> > demand for specialized networking skills is growing even more >>>>> rapidly. >>>>> > Take a complimentary Learning@Cisco Self-Assessment and learn >>>>> > about Cisco certifications, training, and career opportunities. >>>>> > http://p.sf.net/sfu/cisco-dev2dev >>>>> > _______________________________________________ >>>>> > zvtm-devel mailing list >>>>> > zvt...@li... >>>>> > https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>>> > >>>>> > >>>>> <01.dot><01.pdf><01.trace>------------------------------------------------------------------------------ >>>>> > The demand for IT networking professionals continues to grow, and the >>>>> > demand for specialized networking skills is growing even more >>>>> rapidly. >>>>> > Take a complimentary Learning@Cisco Self-Assessment and learn >>>>> > about Cisco certifications, training, and career opportunities. >>>>> > >>>>> http://p.sf.net/sfu/cisco-dev2dev_______________________________________________ >>>>> > zvtm-devel mailing list >>>>> > zvt...@li... >>>>> > https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> The demand for IT networking professionals continues to grow, and the >>>>> demand for specialized networking skills is growing even more rapidly. >>>>> Take a complimentary Learning@Cisco Self-Assessment and learn >>>>> about Cisco certifications, training, and career opportunities. >>>>> http://p.sf.net/sfu/cisco-dev2dev >>>>> _______________________________________________ >>>>> zvtm-devel mailing list >>>>> zvt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The demand for IT networking professionals continues to grow, and the >>>> demand for specialized networking skills is growing even more rapidly. >>>> Take a complimentary Learning@Cisco Self-Assessment and learn >>>> about Cisco certifications, training, and career opportunities. >>>> http://p.sf.net/sfu/cisco-dev2dev >>>> >>>> _______________________________________________ >>>> zvtm-devel mailing list >>>> zvt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The demand for IT networking professionals continues to grow, and the >>>> demand for specialized networking skills is growing even more rapidly. >>>> Take a complimentary Learning@Cisco Self-Assessment and learn >>>> about Cisco certifications, training, and career opportunities. >>>> http://p.sf.net/sfu/cisco-dev2dev >>>> _______________________________________________ >>>> zvtm-devel mailing list >>>> zvt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> The demand for IT networking professionals continues to grow, and the >> demand for specialized networking skills is growing even more rapidly. >> Take a complimentary Learning@Cisco Self-Assessment and learn >> about Cisco certifications, training, and career opportunities. >> http://p.sf.net/sfu/cisco-dev2dev >> >> _______________________________________________ >> zvtm-devel mailing list >> zvt...@li... >> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >> >> >> >> ------------------------------------------------------------------------------ >> The demand for IT networking professionals continues to grow, and the >> demand for specialized networking skills is growing even more rapidly. >> Take a complimentary Learning@Cisco Self-Assessment and learn >> about Cisco certifications, training, and career opportunities. >> http://p.sf.net/sfu/cisco-dev2dev >> _______________________________________________ >> zvtm-devel mailing list >> zvt...@li... >> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >> >> > |