Hi,

> Updated to  0.5-SNAPSHOT. Works. Great!

Excellent. (Again: note that IndexableGraph and AutomaticIndex are slightly 
different in 0.5 than 0.4).

> On a more abstract topic - I'm wondering it there's a good way to use
> your domain objects in Pipes instead of vertices and edges?
> So far I've just created a new Pipe<Vertex, T> that converts the
> vertices to your domain object by referring to node id.

The "trick" to Pipes is to build more abstract relations with lower-level 
pipes. So yes, you want to go from 'graph speak' of edges, vertex, etc. to 
'domain speak' of people, companies, etc. --- for example, 
MyDomainSpecificFriendRecommendationPipe<Person,Map<Person,Integer>>. See slide 
117 here:
        
http://www.slideshare.net/slidarko/memoirs-of-a-graph-addict-despair-to-redemption

Finally, see slide 116 in the same slideshow. All you have to do is overwrite 
AbstractPipe.processNextStarts() and you can map from any type to any other 
type.

Hope that answers your question.

Take care,
Marko.

http://markorodriguez.com




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

Reply via email to