Hi!

Peter Haensgen wrote:

Currently, we implement the interface
"IGraphEntityRelationshipContentProvider" from Zest which defines a
method "Object[] getRelationships(Object source, Object dest)".

I believe (haven't checked the Zest source code) that in order to
determine all relationships between all displayed nodes this method will
be invoked n^2 times, e.g.

That's correct. And then our code has to loop over the relationships, too, for each pair.

So maybe there is another way to tell Zest about the existing nodes and
relationships?

Yes, the IGraphContentProvider interface.

    public Object getSource( Object rel )
    public Object getDestination( Object rel )
    public Object[] getElements( Object input )

Where getElements() provides all _relationships_.

More Neo-like, I think.

Committed in r1950.

For traversal depth zero it shows nothing, as there cannot be anything there from a relationship perspective.

Other than this, the layouts are what really goes slow.

/anders

_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to