Questions tagged [tree-structure]
110 questions
0
votes
1 answer
Can't create proper Tree Structure in table using CSS
I have been trying to make a "connecting line - tree structure" for a tournament bracket system.
However, it is more troubling than I thought. My goal is to have a line connecting the boxes such as http://gyazo.com/4ea425163a8f3e6901b464085421c449,…

RJC
- 37
- 6
0
votes
1 answer
What is the most efficient way of storing complex, self-referencing tree structures in an SQL database?
I'm aware of and have used two methods in the past for basic tree structures: adjacency lists and nested sets. I understand several pros and cons to these approaches - e.g., that adjacency lists are quick to update but slow to query, that nested…

magnus
- 4,031
- 7
- 26
- 48
0
votes
1 answer
Recursion in instance method in python
I am trying to define a recursive method to walk all the nodes of a tree. I defined the Tree as the following:
class Tree(object):
def __init__(self, value, lson=None, sibling=None):
self.value = value
if lson:
…

oz123
- 27,559
- 27
- 125
- 187
0
votes
2 answers
How to change the delegate to be an instance of an object
I'm new to ObjectiveC and am trying to parse an XML file as described in this article:
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/XMLParsing/Articles/ConstructingTrees.html
Trouble is, I don't understand what the article…

acousticape
- 3
- 1
0
votes
3 answers
Tree search function
Any node can have any number of children. To search this tree i wrote something like this
function Search(key, nodes){
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].key == key) {
return nodes[i];
}
…

sarsnake
- 26,667
- 58
- 180
- 286
0
votes
3 answers
do any binary alternatives to XML exist
XML is one way to organize information in a tree-structured manner. However, I am looking for a mechanism that lets my software applications conveniently and efficiently store, retrieve and manipulate arbitrary information organized in a…

sophia
- 39
- 4
0
votes
2 answers
Unsupervised Feature extraction of dishes by building tree structure of ingerdients with Natural Language Processing
I am building a recommendation system for dishes. Consider a user eating french fries and rates it a 5. Then I want to give a good rating to all the ingredients that the dish is made of. In the case of french fires the linked words should be…

user1506145
- 5,176
- 11
- 46
- 75
0
votes
1 answer
TreeStore DragNrop activity not reflected in TreeStore
I created a simple DragNDrop editor to modify a tree to be persisted in my db.
(Using GXT 2.2.5 can't upgrade)
I have a TreePanel constructed with a TreeStore.
The TreePanel is both a TreePanelDragSource and TreePanelDropTarget.
The drag/drop works…

user1776933
- 51
- 4
0
votes
1 answer
Tree Diagrams click functions conflicting
I have two trees on the same page. The first is http://bl.ocks.org/1249394, and the other is http://bl.ocks.org/2503502. I followed the examples on these 2 links for my trees, with some alterations of course. I have included both on the same page.…

user1704514
- 227
- 3
- 4
- 12
0
votes
1 answer
Tree diagram: multiple on one page
I am attempting to put 2 d3.js tree diagrams, as seen here http://bl.ocks.org/1249394
on one page. Both trees will be loaded with different data from Javascript objects. The first one will appear in:
and the second tree will…

user1684586
- 175
- 2
- 4
- 13
0
votes
2 answers
Ajax not working. Output not showing up
I am having a problem using ajax in my code. How it is supposed to work is that index.php would pass values through to ajax.js, then go to further.php. In further.php a tree diagram will be generated and is supposed to be presented in a div in the…

user1684586
- 175
- 2
- 4
- 13
0
votes
1 answer
Tree structure-starting with only root node onload
I am building a tree diagram as in: http://bl.ocks.org/2503502.
I would like to have a tree with all the nodes collapsed, so the initial graph should contain only one node (the root). When the page loads, only the root node should be shown, then…

user1684586
- 175
- 2
- 4
- 13
0
votes
1 answer
Change size of tree structure root node only
I am using the the code found here: http://bl.ocks.org/1249394 for this tree diagram.
How do I change the the size of the root node only? I want the root node to have a different size than all the child nodes. How do I do this?

user1684586
- 175
- 2
- 4
- 13
0
votes
1 answer
Rearranging the tree nodes and saving it back on a self-referencing table with EF
I have a self-referencing table structure working fine with EF, which I use to render a tree view. The EF entity looks like the following and I eagerly load the total structure.
class ListItem
{
int Id;
string Text;
ListItem ParentItem;
…

Ε Г И І И О
- 11,199
- 1
- 48
- 63
0
votes
0 answers
What is the best way to persist a tree-like structure in iOS?
A client has provided me with some data that's in a tree-like structure. It's just composed of YES/NO questions. The ending results are relatively small strings (less than 100 characters), but some of the ending results end in large strings with…

ad0ran
- 326
- 4
- 15