Hi Mattias, I see. So how the relationships and nodes are created: using *create *or *merge* ?
I think merge would solve the issue for a check on duplication of relationships, especially if the directions of connection could be specified or unspecified. Java is not my thing, maybe someone can appoint for where to change the query in the batch importer to avoid duplication with smtg like: merge a-[r]-b ? Il giorno venerdì 15 agosto 2014 14:03:16 UTC+2, Mattias Persson ha scritto: > > The batch inserter > <http://docs.neo4j.org/chunked/2.1.3/javadocs/org/neo4j/unsafe/batchinsert/BatchInserter.html> > > does no such checks, no > > > On Thu, Aug 14, 2014 at 6:54 PM, gg4u <luigi...@gmail.com <javascript:>> > wrote: > >> Hi, >> >> a quick note on the batch importer: >> >> does it import the relationships with an equivalent *create ()-[]->() * >> or *merge ()-[]-()* ? >> >> In order to reduce the size of the graph, I would like to avoid to have >> duplicate relationships, in the sense that if a rel >> a-[]-b exist, that is equivalent to b-[]-a >> and ignore the latter. >> >> In case of a weighted graph, does merge ignore b-[r]-a if a-[r]-b exist >> but r >> has different weight? >> >> thank you ! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to neo4j+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mattias Persson > Neo4j Hacker at Neo Technology > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.