I have a client who has a database that has nodes. Each node can have zero or more children, and zero or more parents, although
usually the number of parents is exactly one. All nodes are unique, and there are no loops.
The task is to build a "browser" for the database, to wander through looking for parents and kids to find a particular node, and to search for nodes meeting a given
set of criteria.
Initially, the client built a tool that uses an Explorer-style interface in HTML, with little "+" boxes to expand out a subtree. This is working fine until we get to the requirement that a node might have multiple parents. The underlying code is using Tree::DAG_node. Oops. {grin}
So, I've got to rewrite that, but then I'm also going to be hacking the GUI code then as well. I'm not much of a user interface designer, so I'm wondering if there are any models for me to draw on of browsing a structure that has few parents and many children, but is not strictly a tree.
Any clues out there? I'll be most appreciative.
-- Randal L. Schwartz, Perl hacker
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.