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

Bi-directional links #4

Closed
drkameleon opened this issue Jan 25, 2021 · 1 comment
Closed

Bi-directional links #4

drkameleon opened this issue Jan 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@drkameleon
Copy link
Contributor

@MichaelCMcCann arturo-lang/arturo#23

Also, it would be nice if one could make certain links bi-directional. For example, rather than:

"Bob -> wife -> Sally”

A dual link such as: “Bob -> Husband/Wife <- Sally”

Many such links could be predetermined, so that “Bob -> Employee -> Google” would automatically create the connection “Google -> Employer -> Bob”

@drkameleon
Copy link
Contributor Author

@MichaelCMcCann

This is an interesting point which I've though a lot about.

The initial, instinctive idea is to think of the relationships as uni-directional vectors. So, it can be either:

  • A->B
  • B->A, or...
  • (both) A<->B.

However, many well-know Graph databases, pretty much eliminate the need for such distinction.

So, in that sense (not that it's final - I'm still open to counter-arguments), I decided to make all links direction-agnostic. What is missing is a direction-agnostic search.

In a few words, the way the database is set up right now, A->B, automatically infers the opposite relationship.
What is not possible so far is to search this relationship in both directions (but is something that can be easily implement and I will included it soon...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant