Results 1 to 4 of 4

Thread: Data Graph Java

  1. #1
    antonello12 is offline Member
    Join Date
    Oct 2009
    Posts
    3
    Rep Power
    0

    Default Data Graph Java

    Hello, I have to implement the Data Graph in Java from an XML database, data structures such as I recommended in order to make effective the next navigation? thanks

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default Re: Data Graph Java

    Might be just me, but your post makes next to no sense. Please elaborate

  3. #3
    antonello12 is offline Member
    Join Date
    Oct 2009
    Posts
    3
    Rep Power
    0

    Default Re: Data Graph Java

    I'll try to explain myself better, I must start from an XML document as:

    <movie>
    <title> Hello </ title>
    <actors>
    <actor> Brad Pitt </ actor>
    <actor> George Clooney </ actor>
    </actors>
    </movie>

    and build an internal representation of the document in the form of a graph, where elements are represented as nodes and links between elements such as arches. Then I have to navigate through the graph to process the data. I wanted to understand what are the most efficient structures for the representation of a graph, ie Hashtable, matrices, etc. ...

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default Re: Data Graph Java

    Draw out a simple xml document, you will find a tree is most pertinent. See The XML data model
    There are java libraries that do all this for you, for instance in the javax.xml.parsers package.

Similar Threads

  1. java graph plot taking file data
    By niloR19 in forum AWT / Swing
    Replies: 3
    Last Post: 11-28-2011, 06:56 PM
  2. Plot 2D graph in Java from RS-232 data
    By spratana in forum Java 2D
    Replies: 4
    Last Post: 02-11-2009, 06:49 PM
  3. How can I create Graph(Data structure) with Java ?
    By mir.shahidul in forum Advanced Java
    Replies: 2
    Last Post: 02-10-2009, 10:19 AM
  4. How can I create Graph(Data structure) with Java
    By mir.shahidul in forum New To Java
    Replies: 4
    Last Post: 02-09-2009, 08:48 AM
  5. Help Creating A Graph From Inputted Data
    By adlb1300 in forum New To Java
    Replies: 6
    Last Post: 10-28-2007, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •