WebAdmin shows me the following information:
1204697 nodes
6113395 relationships
3 relationship types
I run this code:
GraphDatabaseService graphDb = new
EmbeddedGraphDatabase("/neo4j-enterprise-1.4.1/data/graph.db");
int nodes = 0;
int relationships = 0;
List<String> types = new ArrayList<String>();
for(Node n: graphDb.getAllNodes())
{
nodes++;
for (Relationship r : n.getRelationships(Direction.OUTGOING))
{
relationships++;
String typeName = r.getType().name();
if (!types.contains(typeName)) types.add(typeName);
}
}
System.out.println(nodes);
System.out.println(relationships);
for(String t : types) System.out.println(t);
graphDb.shutdown();
and result:
1204646 nodes
5467850 relationships
KNOWS, MEMBEROF types (only 2 types, not 3)
Why incorrect data? I am very important to show the correct data webadmin!
What should I do to show the correct date webadmin?
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/WebAdmin-incorrect-data-tp3443183p3443183.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user