Sure!
I promise the first 100 mailinglist members showing up in Boston or
Philly 1 (one) free beer :)

Cheers,

/peter neubauer

COO and Sales, Neo Technology

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org             - Your high performance graph database.
http://www.tinkerpop.com      - Processing for Internet-scale graphs.
http://www.thoughtmade.com - Scandinavias coolest Bring-a-Thing party.



On Thu, Mar 4, 2010 at 11:22 PM, Rick Bullotta
<rick.bullo...@burningskysoftware.com> wrote:
> That means that you buy the first round of beers next week at the NoSQL
> conference...
>
> -----Original Message-----
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
> Behalf Of Peter Neubauer
> Sent: Thursday, March 04, 2010 5:18 PM
> To: Neo user discussions
> Subject: Re: [Neo] Undirected relationships
>
> Damn Rick,
> you beat me with 10 seconds on the answer!
>
> Cheers,
>
> /peter neubauer
>
> COO and Sales, Neo Technology
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org             - Your high performance graph database.
> http://www.tinkerpop.com      - Processing for Internet-scale graphs.
> http://www.thoughtmade.com - Scandinavias coolest Bring-a-Thing party.
>
>
>
> On Thu, Mar 4, 2010 at 11:16 PM, Rick Bullotta
> <rick.bullo...@burningskysoftware.com> wrote:
>> Hi, Amir.
>>
>> That is because you are calling "getEndNode()" when printing the output,
>> which is a direction-specific method.  You should be calling
>> "getOtherNode()".
>>
>> Regards,
>>
>> Rick
>>
>>
>> -----Original Message-----
>> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org]
> On
>> Behalf Of Amir Hossein Jadidinejad
>> Sent: Thursday, March 04, 2010 5:08 PM
>> To: neo4j
>> Subject: [Neo] Undirected relationships
>>
>> Hi,
>> I'm going to setup a Nearest Neighbour Graph. Its relations are not
>> directed. How to define undirected relationships in Neo4j?
>> By the way, I'm confused with relations! check the following codes to
> create
>> a simple graph:
>>         GraphDatabaseService graphDb = new EmbeddedGraphDatabase("var");
>>
>>         IndexService index = new LuceneIndexService(graphDb);
>>
>>         Transaction tx = graphDb.beginTx();
>>         try {
>>             Node andy = graphDb.createNode();
>>             Node larry = graphDb.createNode();
>>
>>             andy.setProperty("name", "Andy Wachowski");
>>             index.index(andy, "name", andy.getProperty("name"));
>>
>>             larry.setProperty("name", "Larry Wachowski");
>>             index.index(larry, "name", larry.getProperty("name"));
>>
>>             andy.createRelationshipTo(larry, MyRelationshipTypes.KNOWS);
>>
>>             tx.success();
>>
>>         } finally {
>>             tx.finish();
>>             index.shutdown();
>>             graphDb.shutdown();
>>         }
>>
>> This is a simple relations from "andy" to "larry". When I print the
>> neighbours of "larry" by the following codes:
>>             Node a = index.getSingleNode("name", "Larry Wachowski");
>>             System.out.println("Relations:");
>>             for(Relationship r: a.getRelationships())
>>                 System.out.println(r.getEndNode().getProperty("name"));
>>
>> The output is:
>> Relations:
>> Larry Wachowski
>>
>> It means that "larry" is related to himself! why?
>> Kind regards,
>> Amir
>>
>>
>>
>>
>> _______________________________________________
>> Neo mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>> _______________________________________________
>> Neo mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to