Re: [Neo4j] Some questions about design when using neo4j

2011-09-28 Thread Marko Rodriguez
Hey, If you want to play with JUNG over Neo4j, you can do it via TinkerPop. Graph g = new Neo4jGraph("/tmp/neo4j"); GraphJung jung = new GraphJung(g); That GraphJung object is a implementation of the JUNG Interfaces and can be processed by the JUNG algorithms package. https://github.com/tinker

Re: [Neo4j] Some questions about design when using neo4j

2011-09-28 Thread Peter Neubauer
Gen, I guess there is nothing out of the box right now, but you could get inspiration from http://jung.sourceforge.net/doc/api/index.html, especially http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/flows/EdmondsKarpMaxFlow.html and implement one or just use it on a toy graph to tes

Re: [Neo4j] Some questions about design when using neo4j

2011-09-02 Thread Benjamin Gustafsson
Just in case there are any graph experts out there that want to exercise their brains. (Its quite a while since I studied algorithms and optimization regarding graphs. :-) I'm able to implement a algorithm described in pseudocode (if anyone knows a good algorithm for my special case below). I hav

Re: [Neo4j] Some questions about design when using neo4j

2011-08-30 Thread David Montag
On Tue, Aug 30, 2011 at 1:20 PM, Benjamin Gustafsson < benjamingustafs...@gmail.com> wrote: > > > > If an item can only be "had" by one user at a time, then the "display", > or > > "visible_to", relationship could originate from the item. > > > > > > > > 9. "owesItemTo" -relation between User, Ite

Re: [Neo4j] Some questions about design when using neo4j

2011-08-30 Thread Benjamin Gustafsson
> > If an item can only be "had" by one user at a time, then the "display", or > "visible_to", relationship could originate from the item. > > > 9. "owesItemTo" -relation between User, Item, User/Group. (A triple, Do I > > need a node?) > > > > Same here. > Thanks I will rename "have" to "own

Re: [Neo4j] Some questions about design when using neo4j

2011-08-30 Thread David Montag
Hi Benjamin, On Tue, Aug 30, 2011 at 3:16 AM, Benjamin Gustafsson < benjamingustafs...@gmail.com> wrote: > Hi > > I'm trying to figure out how to design a graph database where I have > > 1. Users > 2. Groups > 3. Items > 4. "credit_line" -relation between Users. A balance of credit. > 5. "credit_

[Neo4j] Some questions about design when using neo4j

2011-08-30 Thread Benjamin Gustafsson
Hi I'm trying to figure out how to design a graph database where I have 1. Users 2. Groups 3. Items 4. "credit_line" -relation between Users. A balance of credit. 5. "credit_line" -relation between Users and Groups. 6. "memberOf"-relation from Users to Groups. 7. "have" -relation between User and