Creating graph and DFS in a graph

Hello all,
I have set of vertices in array and edges in linked list. Now i want to create a graph and do depth first search. Can anyone suggest me how to proceed.
situ

Explained in great detail here (even pseudo code):
http://en.wikipedia.org/wiki/Depth-first_search
If you have a specific Java question, please post back.
Good luck.

Similar Messages

  • How do i  create a line graph and scatterplots graph in numbers?

    hi fellow mac users, i am taking a biology class and i have to create a graph, the only problem is i dont know where to begin. I would love your advice and ideas on how to do so.THE OTHER TYPES OF GRAPHS THAT I HAVE TO MAKE IS A LINE GRAPH     SCATTER PLOT    BAR GRAPH   AND    A  PIE CHART.  if yall could help me that would be great. (a list of steps will help me alot)

    HI izzie,
    As well as the link in Wayne's post, you can get the Numbers '09 User Guide through the Help menu in Numbers.
    Besides Chapter 7, which deals with your current question, I would strongly suggest reading at least the first four chapters of the guide for a good grounding in the basics of using Numbers.
    Regards,
    Barry

  • How to Create Legend and Label Graph using VBS

    Hi,
    I've scoured the internet before I had to resort to asking my question here. I hope someone can answer my question.
    Using VBS, how can I create a legend of the channels used in the graph and label the axis in the graph? Thanks in advance!
    Solved!
    Go to Solution.

    I've managed to figure out how to create the labels...
    Call GraphObjOpen(D2AxisXObj(1))
    D2AxisXTxt = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]" ' Defines the x-label
    Call GraphObjClose(D2AxisXObj(1))
     Now to figure out how to create the legend. If anyone can help me, that'd be great.
    ...And now I feel like a downright idiot.
    After more scouring I managed to find what I need
    Call GraphObjOpen("2D-Axis1")
    '------------------- Swith legend on -------------------------------
    D2LEGDRAW =1
    D2LEGTXTTYPE ="Free text" ' "ChannelName" or other keywords
    D2LEGTXTFREE ="My free legend"
    Call GraphObjClose("2D-Axis1")
    'redraw
    Call Picupdate()

  • Creating Graphs and Bar Charts

    Hi members
    I have been looking high and low to find my answer but to no avail.
    I currently run SAP AR Age debt reports once I extract this data I create graphs in excel.
    I am looking for Sap transaction where I can create a graphs and link them to T-Codes such as AGE DEBT report.
    Please help

    Hi,
    first of all you can create z tcodes only in that is in se93.so create a report either using FM or oops and link it too the tcode.
    other FMs
    GRAPH_MATRIX                   Calling up SAP Business Graphics (2D, 3D and 4D)
    GRAPH_MATRIX_2D                Calling up the 2D graphics (user-friendly version)
    GRAPH_MATRIX_3D                Structure of 3D graphics (user-friendly version)
    GRAPH_MATRIX_4D                Calling up a 3D graphic (4th dimension stacked representation).
    u can follow
    Graphs in ABAP
    hope it helps..

  • Trying to create and excel graph and having trouble finding properties and methods for active x.

    I am trying to use Active X in labview 7 to create an excel graph and the HasMajorGridlines property for charts is not in my menu. Where can I get this property and others that appear to be missing and what is a good resource (looking for anything, especially books) for for using activeX/Labview/excel together?

    I am not sure if there is a book or tutorial how to use excel with LabView. I ncluded a Vi which gives you access to the HasMajorGridlines property. I hope it gives you the clou how to work with excel obejcts...
    Chris
    Attachments:
    excel_example.vi ‏24 KB

  • Using same returned data to create datagrid and pie graph

    I am trying to find a good example or information on creating
    charts, initially pie graphs. I will be getting the data from a
    MySQL DB via a HTTPService call to a PHP script. I would like to
    use the same HTTPService call to make a datagrid and build a pie
    graph. My datagrid is working fine.
    All of the examples I have found show the app with an
    internal data source that's hard coded into an array (
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001234.html).
    I did search this forum, but it seems most people are just looking
    for dynamic pie graphs and there isn't enough in the entries for me
    to go off of.
    The data returned to the MXML app looks like this:
    <auditdata>
    <riskdata>
    <core>core number here</core>
    <subcore>subcore number here</subcore>
    <mdata>mdata here</mdata>
    <risk1>number here</risk1>
    <risk2>number here</risk2>
    <risk3>number here</risk3>
    </riskdata>
    <riskdata>
    <core>core number here</core>
    <subcore>subcore number here</subcore>
    <mdata>mdata here</mdata>
    <risk1>number here</risk1>
    <risk2>number here</risk2>
    <risk3>number here</risk3>
    </riskdata>
    </auditdata>
    When the data is returned, everything under <riskdata>
    is put into a datagrid. What I'm looking to do in the pie graph is
    this.
    Create a 2 different pie graphs for each riskdata (there will
    only be 2). The first pie graph will be of the three "risks" (where
    their total number equals 100% of the graph). The second pie graph
    would be "core - subcore" and risk1 (where the two values total
    equals 100%of the graph). I hope that makes sense.
    Any guidance would be truly appreciated.
    Thanks,
    Chris

    Does anyone have any ideas on this?
    Thanks,
    Chris

  • Three Graphs and Data need to display in a single screen

    Hi Gurus,
    I have a requirment that customer wants to see three graphs and data in a single screen.
    The data will be avilable in a single query, how can i display.  I gone through with many SDN blogs, but i did not get the solution.
    Requirment is:
    First graph         Business Unit informaiton, there are around 7 BUs, under each BU, they have 3-7 Industry groups.
    Second Graph:  Industry Group, under each industry group there are no of customers, i want to display top ten customers.
    Third Graph:  Top Ten Customers.

    Hi Karanam,
    Assuming you are using WAD;
    First graph Business Unit information, there are around 7 BUs, under each BU, they have 3-7 Industry groups.
    -You would need to have a Query that displays the BUs with their Industry Group count i.e BU in the Rows with Industry Count as the KF - I assume you want to show count here
    -Build a Data Provider DP1 on the Query
    -Drag a Chart webitem onto the web template & assign DP1 to it - use a Column/Bar Chart to display the Category 'BU' & Series 'Industry Count'
    Second Graph: Industry Group, under each industry group there are no of customers, i want to display top ten customers.
    -You need to have a Query that displays the Industry Groups & top 10 Customers within each i.e.  - create a Query Condition to achieve top 10 Customers based on some criteria - I assume Sales Revenue or likewise
    -Build a Data Provider DP2 on the Query
    -Drag a Chart webitem onto the web template & assign DP2 to it - use a Column/Bar Chart to display the Categories 'Industry Group', 'Customer' & Series 'Sales Revenue' or likewise
    Third Graph: Top Ten Customers.
    -You need to have a Query that displays the top 10 Customers i.e.  - create a Query Condition to achieve top 10 Customers based on some criteria - I assume Sales Revenue or likewise
    -Build a Data Provider DP3 on the Query
    -Drag a Chart webitem onto the web template & assign DP3 to it - use a Column/Bar Chart to display the Category 'Customer' & Series 'Sales Revenue' or likewise
    --Priya
    Edited by: Priya Jacob on May 27, 2010 7:41 AM

  • Printing graph and other text in the same page

    Hi,
    I am aware that for providing graphs in ABAP report we have a FM which is called via a pushbutton in the output screen generally.
    Is there any way I can do away with the pushbutton and print the graph and other text in the same page at one go ? I think Smartforms will not allow graph printing.......any other method to achive this ?
    The user wants to print the graph and other text in the same page.
    Regards,
    Sandip.

    Hi ! no it is not related to smartforms
    search for custom container on google you idea about custom container.
    following code is for displaying alv on selection screen which is created using custom container
    and docking container.
    I hope you will get some idea about how to use custom container for your problem
    DATA DECLARATIONS
    DATA: CONT_DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    GRID TYPE REF TO CL_GUI_ALV_GRID,
    CUST_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    IT_FIELDCAT TYPE LVC_T_FCAT,
    GS_LAYOUT TYPE LVC_S_LAYO.
    *ITAB TYPE TABLE OF SBOOK.
    *& SELECTION SCREEN PARAMETERS
    *PARAMETERS:P_TEST TYPE I .
    *& AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
    IF EBELN[] IS NOT INITIAL.
    CREATE OBJECT CONT_DOCKING
    EXPORTING
    REPID = SY-REPID
    DYNNR = SY-DYNNR
    SIDE = CONT_DOCKING->DOCK_AT_BOTTOM
    EXTENSION = 100.
    IF CUST_CONTAINER IS INITIAL.
    *----Create the alv with docking container
    PERFORM CREATE_AND_INIT_ALV .
    ENDIF.
    ENDIF.
    *& Form BUILD_FIELDCAT
    FORM BUILD_FIELDCAT .
    DATA WA_FIELDCAT TYPE LVC_S_FCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-REPTEXT = 'Airline Code'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELP'.
    WA_FIELDCAT-REPTEXT = 'Flight Connection Number'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *WA_FIELDCAT-FIELDNAME = 'WUNIT'.
    *WA_FIELDCAT-REPTEXT = 'Weight Unit'.
    *APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *LOOP AT IT_FIELDCAT INTO WA_FIELDCAT.
    *IF WA_FIELDCAT-FIELDNAME EQ 'WUNIT'.
    *WA_FIELDCAT-EDIT = 'X'.
    *WA_FIELDCAT-DRDN_HNDL = '1'.
    *WA_FIELDCAT-CHECKTABLE = '!'.
    *MODIFY IT_FIELDCAT FROM WA_FIELDCAT.
    *ENDIF.
    *ENDLOOP.
    ENDFORM. "build_fieldcat
    *& Form CREATE_AND_INIT_ALV
    FORM CREATE_AND_INIT_ALV .
    CREATE OBJECT GRID
    EXPORTING I_PARENT = CONT_DOCKING.
    *--perform build field catalog for alv display
    PERFORM BUILD_FIELDCAT .
    *--fill the drop down list values
    PERFORM fill_dropdown_table .
    *----fill final output table
    SELECT * FROM EKPO
    INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE EBELN IN EBELN.
    *UP TO 10 ROWS.
    *---display alv
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    CHANGING
    IT_FIELDCATALOG = IT_FIELDCAT
    IT_OUTTAB = ITAB[].
    *---Set editable cells to ready for input initially
    CALL METHOD GRID->SET_READY_FOR_INPUT
    EXPORTING
    I_READY_FOR_INPUT = 1.
    ENDFORM. "create_and_init_alv
    *& Form set_drdn_table
    FORM fill_dropdown_table.
    DATA: LT_DROPDOWN TYPE LVC_T_DROP,
    LS_DROPDOWN TYPE LVC_S_DROP.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'KG'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'G'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'B'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'T'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    CALL METHOD GRID->SET_DROP_DOWN_TABLE
    EXPORTING
    IT_DROP_DOWN = LT_DROPDOWN.
    ENDFORM. "set_drdn_table

  • Created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE

    Hi Experts!
    Please, anyone has already created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE??
    Could anyone help me with this requirement?
    Thanks in advance,
    Best regards

    Hi,
    I searched and found another solution, because with the code from the link above I got everytime a short dump, maybe I did something wrong.
    The solution works with Adobe Form
    1. I used the class cl_igs_chart_engine to create a chart with my data and customizing to get the binary data of the image.
    2. Convert the binary tab to xstring.
    3. You can use this xstring on the Adobe Form to display the image.
    Maybe the following tips are useful.
    *How to get the data of chart you can see in the class
    CL_TIME_CHART_SIMPLE (use cl_gui_chart_engine for the chart but  class cl_igs_chart_engine for saving the image)
    *How to bind the image to the importing parameter (xstring)
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    Regards

  • Lexical References for reports 9i (graph and colors)

    hi,
    1) i want to use lexical parameters for graph and colors
    like font,background,foreground,text and so on....
    for graph :
    width,height,x-axis,y-axis and so on....
    my reports are saved in .jsp .
    it is possible or not .if possible please help me.
    it's very urgent.
    2) I have created a report with graph at the beginning of the first page
    I got result with graph and corresponding data in tabular format and saved in .jsp file.
    Graph is shown at the beginning of the report as I desired followed by
    data.(i.e. First Page).
    From next page I am not able to get the data
    from the top of the page instead a gap with the size of the graph is available
    which is blank.
    I need to produce graph only on the first page and the other pages with just the
    data without a gap reserved for graph.
    with regard's
    vijay

    1) Yes, you can use lexical references in the generated graph XML (I presume that you're talking about 9i). However, this functionality is only available in patch 1 and above (patch 2 is now available, and can be downloaded from Metalink).
    2) Create a frame around the graph (and make sure that the graph is contained by the frame, i.e., move it forwards). Make the frame vertically variable.
    Hope this helps,
    Danny

  • XY graph and map mode

    Hello,
      I am using a XY graph and using the map mode for the Y axis to change the Yaxis to a logarithmic mode. The min and max values of the y axis are set to -50 and -7. The y axis of the XY graph is display as 0.01 (min) 10 max. Why doesn't the XY graph accpet the main and max limits that I sent to it?
    Regards,
    Kaspar

    It can be done, bu it may not be trivial, depending on how automated you want it to be.
    First, create a duplicate scale.  See the LV Help page titled Adding Multiple X- and Y-Scales on Graphs or Charts.
    Next, calculate the values in dBm from the range in the data or the range of the instrument.
    Use property nodes to set the properties of one scale to display the dBm values and hide the other scale.
    Here is a little example which shows what I tried.  Some of the things in there may not be needed.  This is not optimized.
    Lynn
    Attachments:
    dB Scale.vi ‏30 KB

  • Copying Graphs and Pie Charts generated in Analysis View to Email item using Excel VBA Macro Code

    Hi
    I am currently working on an exce VBA macro code that would help me take snapshots of the Graphs and Pie charts generated in QC for a particular application and copy the same to an email item using excel VBA macro code.
    I was able to write the code to create an email item. But I have no clue of how i can take snapshot of the graphs in Analysis View using excel VBA
    Any help would be highly appreciated.
    Thanks in Advance
    Regards
    Amit

    useramit,
    You are in the consumer end products forum.  You will also want to ask your question over at the Enterprise Business Community.
    Click the plus sign (+) next to Discussion Boards to drop down all the options for servers, networking and any other professionally related problems.
    http://h30499.www3.hp.com/

  • Grapher and transparent background

    I've searched high and low and was not able to find an answer. Here's my situation:
    - I've created a 3D revolving graph using grapher and recorded the movement using SnapzPro. The resulting movie has a white background.
    - I want to add it to a Keynote presentation I'm making.
    My question:
    Is it possible to make the white background transparent in FCE?
    Any help will be most welcome!

    So you don't actually have transparency in your 3D animation. You could try to key out the white in FCE, and then don't render and export to QuickTime Conversion using the Animation codec with Colors set to Millions+. I have no idea how Keynote handles this.

  • Styles for graphs and charts?

    Hello,
    I am trying to find out if there is a way to save a graph style, as you would do a paragraph style. This is mainly due to the fact that I need to create about 250 charts in illustrator, and I would really appreciate if I could automate some of the graph or chart creation process, as where I could define a style and then just apply it, meaning the colors, position, size, and font.
    What do you guys think? How would you approach it?
    I'm even having a hard time making the graphs look the way I want them to.
    Thanks in advance for any input you can give me.

    Enrique:
    So where can I learn the right way to convert my excel data to XML that Variables will accept, and also about your script, could it be adapted to create the Data Sets for the graphs? And if so, is it available for download or  purchase?
    I'm afraid I don't really know how to massage an XML file into what Illustrator wants. I've done a little reading about XML, but it bores me to death, seems quite cumbersome, and I've yet to have any real need for it. So far, every time I thought I might need it, I've worked the solution more directly in FileMaker.
    If I remember correctly, in my dinking around with XML, I found that FileMaker could export XML that InDesign could deal with unaltered; but not Illustrator.
    Especially given that all your Graphs require the same number and arrangements of values, though, I would think an ordinary manual find/replace routine in a text editor should do in your case:
    Use the first set of values from one of your Excel files to build the first graph.
    Bind the Graph as a Variable. Capture its DataSet.
    Edit the Data from the second spreadsheet in the Graph Data Dialog. Capture its DataSet.
    Now you have a Variable Graph, with two DataSets. Export the DataSets as a Variables Library.
    Open the Variables Library in a text editor. You can see how the two DataSets are structured and tagged. That should be fairly easy to use as a guide for a few Find/Replace routines in Word or some other text editor Copy/Paste the data from the various spreadsheets. Then use Find/Replace to semi-automate the addition of the XML tags. When done, Copy all that and paste it into place in the Variables Library you exported. Reimport the edited Library into AI.
    All things considered, though, that's probably as much work as simply right-clicking the Graph, select Data from the cursor menu, Click the Import Data button in the Data Dialog, and selecting the next spreadsheet in the folder. Export as PDF. Repeat. If you decided to do that, you could at least have a couple of Actions to invoke the DataDialog, and to Save A Copy as PDF. That would at least reduce those operations to a single click each.
    Although I haven't time to try it right now, I do suspect it would be a fairly simple scripting task to adapt my VFTROU script to generate DataSets for a Graph.
    Finally, though: Your graph sample doesn't appear to be graphics intensive at all. Why not just make the graphs in Excel and export to PDFs that you can place in InDesign? I'm wondering why you feel you need Illustrator involved in this at all.
    JET

  • Obscured Labels - Graphs and tab controls

    In LV 2012 new options (Preferences or Options on the Mac) allow placing labels on new controls and indicators in various positions. I have noticed that for graphs and tab controls some of the options result in obscured labels.  See the image below.
    The preferences are set as shown:
    When a graph is dropped, the label is superimposed on the plot legend display.
    For a tab control everything is OK until enough tabs are added to create a second row. Those tabs are behind the label.  I can understand some reluctance to move a label automatically after it has been created (in the tab case), but I think it would be better moved up than obscured.  Perhaps if the programmmer had repositioned the label before the tabs were added, then it should not move automatically.
    Is this a bug?
    Lynn

    Hi Lynn,
    I've played around with these settings and I get the same results.  It seems with the tab control that the new row of labels is pushed to the top by default, and the label will be obscured unless it has been placed to the bottom or side of the control.  After looking into things further it seems that this is the expected behavior rather than a bug.  You're welcome to post your idea to the Idea Exchange as a feature request, it seems like that might be a better way to handle the label positioning in the future.
    Matt Lee
    National Instruments
    Applications Engineer

Maybe you are looking for

  • CPU upgrade on Satellite L30-101

    Hi, I have a Toshiba Satellite L30-101. I've upgraded the RAM successfully to 2GB (2x 1GB) but I'm finding it incredibly hard to get information on processor replacements. The laptop has the latest BIOS on it (3.10-WIN - 19/02/08) but when trying to

  • Post Crash attempts to Get Back to OS X10.4.8 All Failing

    I am so close yet so far away. After 3 weeks of working on my Old Mac G4 (which was running 10.4.8 just fine before the crash), after running Disk Warrior (if you do have this Utility S/W on the self get it , it is the best $90 you will ever spend) t

  • Robohelp 9 Chinese output

    Hi, I am working on a Chinese language help file. I have an issue while generating chm output, using the Robohelp source files. I am using Robohelp 9. If a file name is in Chinese font, in the chm output the content of the htm file is not displayed.

  • Help with CUA and modifying user "own profile".

    Hey guys, We just implemented CUA in our enviornemnt, and have run into the system. I understand why all accounts now get modified in the central system, however, our users are asking to be able to still modify thier account defaults (i.e. hour forma

  • Suddenly spanish google became default search tool instead of russian

    hi everyone, so I described my problem in the topic name. just few days ago safari on 10.6.8 started to search results on spanish site instead of russian. I made nothing special just was browsing the web that day so I could not reach the root of the