hierarchical-data

Hierarchical data in C++

How can I handle data in C++ like in newer dynamic languages, for example the arrays in PHP are quite neat: $arr = array( "somedata" => "Hello, yo, me being a simple string", "somearray" => array(6 => 5, 13 => 9, "a" => 42), "simple_data_again" => 198792, ); I am open to all suggestions. ...

Is there a Hierarchical interface supplied by Microsoft .NET framework?

I want to implement a control with a specifiable DataSource property and it would be great if I could inherit and the type of the DataSource implements some sort of Hierarchical interface with properties and methods ensured. Does .NET supply such an interface? Googling revealed nothing. ...

Hierarchy level in UINavigationController in iPhone

Is it possible to decide the number of hierarchical level dynamically in UINavigationController in iPhone ? Actually, in my application I have to display hierarchical data but I don't know the number of levels at the coding time. The number of levels can be increase or decrease. The exact number of levels will known to me at the time of ...

Binding Concrete types (using Inheritance) to a ListView and display in Hierarchical structure ASP.net 3.5

I would like to bind more than two different implementations of a class to a ListView and display the data in a Hierarchical structure (multi level). Look at the Code below to understand where I'm coming from: Thanks in advance M. public class AutoElements : CommonElements { public class results_dataset { ...

Binding Listview to multiple Object datasources ASP.net 3.5

Hello, I am using Object as the data source to my Listview and trying to display data in a Hierarchical manner. I am not able to figure out how to bind these objects to my listviews. Below pasted is the code. I am trying to place Listview inside another listview, inside another listview inorder to display data in a hierarchical manne...

How can I simplify hierarchical class structure resulting in chained method calls?

I have the following hierarchy of classes in a problem that I am working on. DiscountEvent DiscountGroup ProductFamily Product where each class contains a collection of next one (e.g. DiscountEvent contains a collection of DiscountGroups, etc) This kind of a somewhat deep hierarchy results in many chained calls from the h...

Fatal error: Nesting level too deep - recursive dependency?

I have a complex hierarchy of nested objects, with all of the child objects (stored an array of objects in the parent class) containing a property linking back to their parent: fairly simple and straightforward, with no real problems. If I do a var_dump of any object in the hierarchy, I'll get a recursive reference in the dump, exactly a...

Retrieving parent value from mysql self join

I have a table with fields: id name parent_id grandparent_id I want to select the id, name, parent name, grandparent name. Can I do this with a self join? I basically want to retrieve the "name" value where parent_id = id and return one row. Example: id name parent_id grandparent_id ---------------------------------...

How to make a SQL query for an ordered list with sub-groups?

Hi I have a table with this structure id integer parent_id integer order_n integer info text Each row could have a parent row (parent_id, null if doesn't have a parent), and an order of insertion (order_n). Every time a row is inserted, the order_n field will be set with the correlative "inside his parent". So, two rows of fir...

jQuery / asp.net-mvc: How can I display Hierarchical Data using IHierarchicalEnumerable?

I have an asp.net backend that creates Hierarchical Data based on IHierarchicalEnumerable. This was used for custom Hierarchical Data Controls in ASP.NET WebForms for sitemaps etc. We are now using ASP.NET MVC and am looking to use the same Hierarchical Data Collection with jQuery / Json etc. How can I display Hierarchical Data using ...

Finding Descendant Depth in an Adjacency List Table

Question Example Table +-------------+----------------------+--------+ | category_id | name | parent | +-------------+----------------------+--------+ | 1 | ELECTRONICS | NULL | | 2 | TELEVISIONS | 1 | | 3 | TUBE | 2 | | 4 | LCD ...

Actionscript Filtering XMLLists (Hierarchy) Best Practices?

I have been trying to decide what the best way to filter a set of data for a tree view is. The filters are in the following XML format: (sometimes) Filtering two datasets: > AND So I've been thinking about writing special conditions for the following, which are required at times because som...

Whats the right / best way to filter HierachalData in Actionscript that consists of varying filters, how they apply, and differing hierarchal datasets

I have been trying to decide what the best way to filter a set of data for a tree view is. The filters are in the following XML format: using periods instead of carots .Category. .FilterCategory(sometimes) FilterAgainstAttribute, FilterDataToCompare, FilterCategory. .Filter Attributes(FilterAgainstAttribute, FilterDataToCompare, Filter...

Again, Flex 4, Actionscript Complex data filtering of XMLList filter and data-sets with special conditions.

So I tried to format this properly the first time, but it published and all the stuff in carets wasn't parsed properly, so I'll try again: I have been trying to decide what the best way to filter a set of data for a tree view is. The filters are in the following XML format: using periods instead of carots Filterin...

What are the Options for Storing Hierarchical Data in a Relational Database?

Good Overviews One more Nested Intervals vs. Adjacency List comparison: the best comparison of Adjacency List, Materialized Path, Nested Set and Nested Interval I've found. Models for hierarchical data: slides with good explanations of tradeoffs and example usage Representing hierarchies in MySQL: very good overview of Nested Set in p...

parsing Hierarchical self-join table by tree level?!

Hi friends, I have a self referential category table as you see: I want to parse this table to find out tree level for each category. for example if root node level is 0 then CPU and Hard Drive and VGA and RAM are in level 1 and so on. how can I handle that? I created a dictionary to put each category ID and its Level: Dictionary<int...