Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferred arrow directions in models of composite objects #809

Open
mhlr opened this issue Jun 16, 2023 · 0 comments
Open

Preferred arrow directions in models of composite objects #809

mhlr opened this issue Jun 16, 2023 · 0 comments

Comments

@mhlr
Copy link

mhlr commented Jun 16, 2023

Arrow in models of composite systems tend to have the oppsite directions in programming languages (both OO & Functional) and relational models. In programing landuages the parent knows about its children while in relational models the children tend to know about their parent.
There are several reasons for this

  • relational models do not support multivalued attributes
  • it makes it easy to grow a tree nondestructively in the relational model
  • relational models have indexes andbult in operations like join that make it possible to find all the descendants of a node even when the arrows point upwards.

What is the preferred way in Catlab?

  • parent has a collection of children
  • each child has a parent
@mhlr mhlr changed the title Arrow direction modelling composite objects Preferred arrow directions in models of composite objects Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant