English 中文(简体)
具有核心数据支持的树木数据。
原标题:Objective C tree data stucture with Core Data support?

我正在寻找某种参考工作,或研究一个持续的目标树? 我正试图建造一个家庭树(遗传学记录),在Piich/MacOS上。 感谢!

最佳回答

(key: -> = to-one, --->> = to-many)

你们的基本树类实体图就是这样:

LinkedTreeNode{
    //... whatever attributes you want a node to have
    parent <--(optional,nullify)-->>LinkedTreeNode.children
    children <<--(optional, cascade)-->LinkedTreeNode.parent
}

它有一个与自己有关系的实体。 父母关系指在树(母)上高于另一个目标,在树下指一个或多个儿童物体。 其逻辑上恰好像是标准C树。 你只是取代与实体图表关系有联系的点。

为了示范基因关系,你需要增加配偶,因为(全心全意)每个人作为父亲和母亲,任何人都可能有一个以上的配偶。

Person{
    spouses <<--(optional,nullify)-->>Person.spouses
    parents <<--(optional,nullify,Max=2)-->>Person.children
    children <<--(optional,cascade)-->>Person.parents
}
问题回答

暂无回答




相关问题
Alpha Beta Searching and Transposition Tables

I have alpha beta search working and want to implement transposition tables to make it faster. The problem I m having is the relationship between the entries in the table and the current position ...

Objects that represent trees [closed]

Are there any objects in C# (or in .net) that represents a binary tree (or for curiosity) and n-ary tree? I am not talking about presentation tree controls, but as model objects. If not, are there ...

Data structure to sync a file-tree

I m in the process of a writing an application, which needs to synchronize a file-structure between a client and a (http) server. The file-structure is essentially a list of file-paths where each ...

draw dependency graph for a java class

Heyho, I m searching for a tool like JDepend to draw a graph for a java classfile. JDepend seams to be fine, but it s not resolving the deps from the deps (maybe I m just missing some special options?)...

Nested join on same table (tree structure)

My date is organized in tree structure. The following applies (Oracle SQL syntax): CREATE TABLE TREE ( NAME VARCHAR2(20), ID NUMBER(10, 0), PARENT NUMBER(10, 0) ) ; INSERT INTO "TREE" (NAME, ...

sql query tree like structure

I have a tree like structure of Categories, the leaf Nodes in the tree have Products and the products have Cods I need to select all the top level Categories (parent=null) that have leafs (Cods) that ...

xsl loop to split a fragment tree every n times

This is a sample of my XML, it can possibly have thousands of rows of items in a range of categories. <store> <products type="computer"> <item desc="text" amount="99"></c&...

Family Tree in Silverlight

Hello Currently I am working on a project in which I have to create family tree. It will have almostn number of hierarchy. Whole tree should be displayed to user as well as zoom in zoom out facility ...

热门标签