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

Distribution of nodes across relationships seems not to be randomized #3

Open
Leward opened this issue Nov 7, 2014 · 1 comment
Open

Comments

@Leward
Copy link

Leward commented Nov 7, 2014

We assume the following model:

  • A User has one and only one FileSpace defined.
  • A FileSpace can contains many files.

If you run the following query several times:

(user:User {email:email} *5)
(user)-[:filespace *1..1]->(fs:FileSpace *5)
(fs)-[:contains *1..n]->(file:File {name: randomNumber} *10)

You will notice that one of the FileSpace always contains 5 files and the others only 1. Is this normal behavior, or the maybe did I miss something in the query?

@ikwattro
Copy link
Member

ikwattro commented Nov 7, 2014

Yes currently there are such limitations in graph definition, I suggest you increase the File nodes to 20 so you'll have many files by fs nodes.

In the future you'll be able to do more accurate graph definitons, a new GraphEvaluator will be created for it ;-)

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

2 participants