1 Reply Latest reply: May 4, 2008 2:53 PM by DrClap RSS

    Searching for easiest way to generate tree without duplicate nodes

    807591
      Hello,

      I want to generate a tree from a list, where all paths are included:

      Land, Town, Street
      ----------------------------
      England, London, StreetTwo
      England, Dover, StreetOne
      Germany, Berlin, Hauptstrasse1
      France, Paris, Rue One
      France, Lyon, Rue Two

      Is there a smart way to prevent duplicate tree nodes upon creation (example: only one node "England" with two subnodes...)? I am going to scan the whole tree again and again before inserting new nodes....

      Best regards