The tree has the following characteristics:
- Each node can have multiple parents and multiple children.
- The Parent nodes of a Node can have different depth.
Example
I am trying to represent a category structure such as the following:
Desktop and Mobile Applications
Desktop and Mobile Applications->Android Apps
Desktop and Mobile Applications->Android Apps->Games
Desktop and Mobile Applications->Android Apps->Games->Action
Desktop and Mobile Applications->Games
Desktop and Mobile Applications->Games->Action
Desktop and Mobile Applications->Games->Adventure
Desktop Applications
Desktop Applications->Games
Desktop Applications->Games->Action
Desktop Applications->Games->Adventure
IPhone Applications
Desktop Applications->Games
Desktop Applications->Games->Action
Desktop Applications->Games->Adventure
Tried using the Nested Set Algorithm and I end up with multiple "Games" categories with different categoryIDs and at different depths.
Any help with this will be much appreciated.