baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:

Hi, What I am looking for i a graphic interface tor editing a tree data structutre. Example: let say i have a two column table of numbers. those numbers are structured i a clasic parent child relationship:
parent child 2 5 2 7 2 8 5 6 5 9 6 10 7 11 7 1 ...
now it is easy to make a simple recursive algotihm to traverse this tree but what i am looking for is a way to display this tree. it dousn't have to be perfect but it needs to be simple enough so that it can be used in a web app and it needs to allow editing. for example let say i want to move child node 1 from 7 to 2 then i would like to click on 1 and drag it to 2. is there any module that can do something like that ?? emphysis is on a drag and drop interface.

thnx

baxy

Replies are listed 'Best First'.
Re: graphic interface for tree editing
by BrowserUk (Patriarch) on Jan 07, 2014 at 16:06 UTC

    See Challenge: dumping trees, particularly hdb's astonishing, amazing, invaluable contributions.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: graphic interface for tree editing
by choroba (Cardinal) on Jan 07, 2014 at 22:31 UTC
    See also TrEd, a tool I helped to develop and maintain. It allows editing in Tk only at the moment, but can output to SVG, which is handy in web pages (see PML Tree Query).
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ