POLALA.COM
welcome to my space
X
Welcome to:polala.com
Search:  
NAVIGATION - HOME

N-Ary tree

Published by: webmaster 2010-03-16

  • Hi board,

    I need to display a n-ary tree. Does anybody have an implementation or logic to position the various nodes?

    The tree can be arbritrarily huge.

    Currently the nodes are library - movieClips and added to the _root using attachMovieClip and the connectors/edges are done using lines. The tree is not being displayed as of yet its just adding to nodes at random positions and drawing a line between them. :(
    n-ary tree: Definition from Answers.com::
    n-ary tree ( ′enərē ′trē ) ( mathematics ) A rooted tree in which each vertex has at most n.
    http://www.answers.com/topic/n-ary-tree
    HOME

    Help. Any other stratergy to display the tree could also be used but the nodes should be draggable more precisely a node can be dragged and dropped into another node.

    Thanks.

    Cruiser.


  • Hi,

    You would get a better idea if you see http://www.touchgraph.com/PlanetWissen.html

    That is a 2d model but the nodes are all around. I want to do the same thing but the child nodes are always below the parent node. The physics aren't necessary.
    Special Trees::
    Second we will discuss how to represent and process N-ary trees, where each parent can store . There are many ways to implement an N-ary tree structure.
    http://www.cs.cmu.edu/~pattis/15-1XX/15-200/lectures/specialtrees/index.html
    HOME

    Thanks.


  • Hoi

    I would like to help but i dunno what you what to achieve.

    maybe you can show what you all ready have :)


  • randomleeway = 10
    spaceing = 20
    this._x = (Math.random()*randomleeway-randomleeway/2)+ParentNode._x;
    Common Lisp N-ARY Tree (home) The n-ary-tree package implements an ::
    The n-ary-tree package implements an automatically rebalancing B-tree which supports n >= 5 items in any mixture of types per node.
    http://pounceatron.dreamhosters.com/nary-tree/
    HOME
    Data Structures and Algorithms: n-ary trees::
    The height of a complete m-ary tree with n nodes is ceiling(logmn). n-ary trees (or n-way trees): Trees in which each node may have up to n children.
    http://docs.linux.cz/programming/algorithms/Algorithms-Morris/n_ary_trees.html
    HOME
    this._y = (Math.random()*randomleeway-randomleeway/2)+ParentNode._y+spaceing;


    some thing like that?





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market

    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about N-Ary tree , Please add it free.
  • can someone with some knowledge who is respectful tell me why muslims think it is okay to bash other religions
  • when you find an interesting question and want to go ahead and answer it
  • finally the answer to the age old question why do atheist care about religion
  • note just ones who believe in god and religion are to answer not atheist not pagans not anyone who
  • my fellow muslims when was the first time you remember bowing down
  • bullet speed …
  • atheists agnostics and skeptics please why do you answer religion questions
  • what is the meaning behind doing it for allah does he need it
  • why do some people not want atheists answer a question that has nothing to do with religion
  • how do i make my questions and answers private in my profile
  • do we need all of you to tell us all things when it all came long ago in perfection
  • if atheist have no religion why do so many answer and hang out in the religion areas
  • please answer why do atheist chirstians get into a fight when comes into religion
  • i want every religion even atheist to answer this question

  • what happenend to yahoo avatars they were so much fun and i miss doing them
  • why do so many atheists answer questions in religion and spiritually
  • is answering what is your religion with atheist an illogical answer
  • why are there so many atheist 039 s on religion sprituality
  • can somebody help me with the as level physics on electron energy levels ionisation
  • would it be a good idea for me to tell you everything about my family on here
  • there 039 s no such thing as freedom
  • a rock has a volume of 800cm 3 and a weight in air of 33n calculate the weight in water help
  • how do i figure out the initial speed of this projectile
  • how to find the minimum speed to clear the canyon dealing with physics
  • why do hateful atheists answer questions about religion
  • do you think it is ok to insult other peoples deities just because muslims know the truth
  • if matter can be neither created or destroyed does that mean souls will reamain on earth for forever
  • About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008polala.com All Rights Reserved