Questions tagged [hierarchy]

For issues relating to creating, maintaining, or displaying a hierarchy of data or resources, etc.

A hierarchy is an arrangement of items (objects, names, values, categories, resources, etc.) in which the items are represented as being "above," "below," or "at the same level as" one another. Abstractly, a hierarchy is simply an ordered set or an acyclic directed graph.

A hierarchy can link entities either directly or indirectly, and either vertically or horizontally. The only direct links in a hierarchy, insofar as they are hierarchical, are to one's immediate superior or to one of one's subordinates, although a system that is largely hierarchical can also incorporate alternative hierarchies. Indirect hierarchical links can extend "vertically" upwards or downwards via multiple links in the same direction, following a path. All parts of the hierarchy which are not linked vertically to one another nevertheless can be "horizontally" linked through a path by traveling up the hierarchy to find a common direct or indirect superior, and then down again.

2838 questions
9
votes
2 answers

Swift: "Attempt to present UIAlertController whose view is not in the window hierarchy!"

I'm trying to display a UIAlertController when a button is clicked (button click runs certain code, and depending on said outcome - the Alert shows up). The initial ViewController is the default one, and I've created a second one…
szady
  • 125
  • 1
  • 1
  • 9
9
votes
3 answers

Entity Framework 4 - Inheritance

I am trying to understand the inheritance mappings in EF4. My database has two tables with the following structure: PersonCategory Table: CategoryID (int) (identity) (PK) CategoryType (nvarchar(50)) Person Table PersonID (int) (identity)…
muruge
  • 4,083
  • 3
  • 38
  • 45
9
votes
4 answers

Java Generics: set List of superclass using List of subclass

If I have a method in MyClass such as setSuperClassList(List) ...should I be able to do this: new MyClass().setSuperClassList(new ArrayList()) It appears this won't compile. Why?
Drew Johnson
  • 18,973
  • 9
  • 32
  • 35
9
votes
1 answer

in Python use of hierarchy for findContours

I implemented a Python script for recognizing shapes in hand drawings. However, the script recognizes more shapes than needed. Here is an example picture: and this is the output of the script: Part of the code I wrote is the following: def…
Francesco Sgaramella
  • 1,009
  • 5
  • 21
  • 39
9
votes
2 answers

How to do a view hierarchy dump in android app

I want to profile my ui - it falls on stackoverflow for the onDraw method I've been told its because my ui has too many layers I wanted to do a view hierarchy dump to see how deep my layers are but when i try to load the hierarchyviewer I get this…
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
9
votes
1 answer

Build JSON Hierarchy from Structured Data

C# | .NET 4.5 | Entity Framework 5 I have data coming back from a SQL Query in the form of ID,ParentID,Name. I'd like to take that data and parse it into a Hierarchical JSON string. So far it seems to be much more of a daunting task than it should…
Will
  • 989
  • 4
  • 19
  • 33
9
votes
6 answers

Where can I find .NET Framework class diagram?

I just need a file (picture, pdf or other type file for printing) of the framework structure. It is very usefull while learning .Net framework.
CoolMagic
  • 258
  • 1
  • 2
  • 7
9
votes
2 answers

Moving a git repository down a hierarchy level

I was searching for hours now but couldn't find a satisfying answere even though it appears to be simple noobish question. What I basically want to accomplish is to move my .git directory which currently resides besides my project folder down into…
9
votes
3 answers

2D Game: Fast(est) way to find x closest entities for another entity - huge amount of entities, highly dynamic

I'm working on a 2D game that has a huge amount of dynamic entities. For fun's sake, let's call them soldiers, and let's say there are 50000 of them (which I just randomly thought up, it might be much more or much less :)). All these soldiers are…
Pygmy
8
votes
6 answers

Interesting tree/hierarchical data structure problem

Colleges have different ways of organizing their departments. Some schools go School -> Term -> Department. Others have steps in between, with the longest being School -> Sub_Campus -> Program -> Term -> Division -> Department. School, Term, and…
Ben G
  • 26,091
  • 34
  • 103
  • 170
8
votes
1 answer

How to diff two versions of same object?

I want to compare two objects of different versions and display their differences in UI. First I call a method to know if there is any difference between the two objects The method is: public bool AreEqual(object object1,object object2, Type…
ksa
  • 546
  • 1
  • 4
  • 20
8
votes
1 answer

CTE (Common Table Expression) in EFCore

I have a table in my DB that stores the hierarchy of locations. It has 3 columns (Id, Name, ParentId). I need to load some row base on a condition and all their parents up to the root. If it was in ADO I would use the following statement. with…
8
votes
2 answers

Retrieving Hierarchical/Nested Data From CouchDB

I'm pretty new to couchDB and even after reading (latest archive as now deleted) http://wiki.apache.org/couchdb/How_to_store_hierarchical_data (via ‘Store the full path to each node as an attribute in that node's document’) it's still not clicking…
berg
  • 614
  • 3
  • 9
  • 23
8
votes
1 answer

How to use Opencv contours to describe line points in a unidirectional way

I am using opencvs findContour to find the points to describe an image made up of lines (not polygons) as such: cv::findContours(src, contours, hierarchy, cv::RETR_EXTERNAL, cv::CHAIN_APPROX_SIMPLE);.
user12538567
8
votes
3 answers

How can I view the object hierarchy in XCode 4 like XCode 3 does?

In Information Builder, I need to view/navigate all the objects in a the XIB and like to use the object hierarchy view in Xcode 3. However, in XCode 4, it just show the top level objects, but not the child objects. How can I view them all in XCode…
Jose
  • 347
  • 1
  • 4
  • 8