Gábor Szárnyas
unread,May 8, 2012, 5:57:37 PM5/8/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ne...@googlegroups.com
Hello!
I use Neo4j 1.7 and Neoclipse 1.7 on Windows 7. My problem is that I can't find isolated points in Neoclipse.
An example: I constructed a simple graph with 3 connected points and an isolated one.
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("tempdb");
Transaction tx = graphDb.beginTx();
try {
// graph: (0)---"A"--->(1)---"B"--->(2) (3)
List<Node> nodes = new ArrayList<Node>();
for (int i = 0; i < 4; i++) {
Node node = graphDb.createNode();
node.setProperty("label", "(" + i + ")");
nodes.add(node);
}
Relationship relationshipA = nodes.get(0).createRelationshipTo(nodes.get(1), MyTypes.POINTS_TO);
relationshipA.setProperty("edgelabel", "A");
Relationship relationshipB = nodes.get(1).createRelationshipTo(nodes.get(2), MyTypes.POINTS_TO);
relationshipB.setProperty("edgelabel", "B");
tx.success();
} finally {
tx.finish();
}
graphDb.shutdown();
Neoclipse shows nodes (0) and (1). By increasing the traversal depth by one node (2) becomes visible as well. How can I see (3) from Neoclipse?
Obviously, if I export the graph to JSON/XML, the file contains the isolated point.
Thanks,
Gabor Szarnyas
BUTE CS student