有一个能够生成图表的在线工具:http: //graphgen.graphaware.com
它基于 Cypher 规范。
表示部门组织结构图的简单模式,可以这样定义:
(Dept1:Department {name:word}*5)<-[:PART_OF *1..n]-(subDept1:Department {name:word} *10)
(Dept2:Department {name:word} *5)<-[:PART_OF *1..n]-(subDept2:Department {name:word} *10)
(ssd1:Department {name:word} *20)-[:PART_OF *n..1]->(subDept1)
(ssd2:Department {name:word} *20)-[:PART_OF *n..1]->(subDept2)
(employee1:Person {name:fullName} *50)-[:WORKS_IN_DEPT *n..1]->(ssd1)
(employee2:Person {name:fullName} *50)-[:WORKS_IN_DEPT *n..1]->(ssd2)
您可以在此处预览图形:(加载页面后单击生成)http://graphgen.graphaware.com/?graph=koWvmnBTW7JMR7
此外,还可以将图形数据导入数据库(甚至是本地数据库),创建 neo4j 控制台或获取 graphjson 格式。
不要犹豫,适应您的需求并尝试该工具,文档可在此处获得:http: //graphgen.graphaware.com/documentation
此外,您可以在 twitter 上联系我:https : //twitter.com/ikwattro,了解有关 graphgen 的更多问题。
克里斯