adjacency-list
Looking for effecient way to store nested data with hibernate
I\'ve been trying to find an efficient way to represent nested data i开发者_如何学Gon java/hibernate.My initial solution was a parent/child list with a self referencing join, but there are obvious pit[详细]
2023-02-02 13:22 分类:问答How to store a map and generate a graph with BFS in Ruby
So I guess this is a classical question for somebody with MSC in CS. I have N element and I have the distances as well. Let\'s say I have 3 elements with the following distances. It is symmetric, so[详细]
2023-01-31 17:20 分类:问答Copy in adjacency model
I need to create a sql stored procedure (Sql Server 2008 - T-SQL) which copies a node in an adjacency model.[详细]
2023-01-27 06:05 分类:问答Recursive PHP function for adjacency-list display
I have a DB like so: idtextparent 1Parent 10 2Child of 11 3Sibling1 4Another Parent0 5A first child4 So I\'m trying to capture a tree structure my listing the parents. I\'m aware of the other opti[详细]
2023-01-26 11:41 分类:问答Adjecency List Model OR Nested Set Model, which data model should I use to store my hierarchiecal data?
I have to store messages that my web app fetch from Twitter into a local database. The purpose of storing messages is that I need to display these messages in a hierarchical order i.e. certain message[详细]
2023-01-26 02:15 分类:问答PHP/MySQL: Retrieve a single path in the Adjacency List model
Is there any effective way to, without limiting the depth, retrieve a single path in a Adjacency List model based on the node\'s ID? Like if I\'ve got an ID for a node named \"Banana\" I could get the[详细]
2023-01-15 01:44 分类:问答Converting adjacency list tables to MPTT in SQL Server 2008
Is there a helpful tool or script resource to aid conver开发者_开发问答sion from old-school adjacency list tables to MPTT?[详细]
2023-01-05 07:39 分类:问答Adjacency List Model Select by Path
I\'m trying to select a node in my heirarchical system. I have the \"/Path/To/Some/Node\" (In exactly that form) and I am trying to figure out how I canget the children of \"Node\". Naturally \"Node\[详细]
2023-01-04 17:58 分类:问答SELECT an arbitrarily deep tree that is represented by the adjacency list model in mysql?
In mysql, I have a tree that is represented using the adjacency list model. MYTREE id parent_id title I am wondering:[详细]
2023-01-03 05:35 分类:问答A RecursiveParentChildIterator -- like the RecursiveDirectoryIterator
There are tons of examples of using the RecursiveIterator to flatten a tree structure.. but what about using it to explode a tree structure?[详细]
2022-12-28 20:19 分类:问答