1
然此代碼全球圖形操作使節點代理不節點
String DB_PATH = "path/to/data/graph.db"
GraphDatabaseService graphDb = new EmbeddedGraphDatabase(DB_PATH)
for(Node _node: GlobalGraphOperations.at(graphDb).getAllNodesWithLabel(DynamicLabel.label('Label_Name')))
{
//Do Stuff
}
不過這應該不會返回任何內容(在那裏有沒有標籤還)。它也不是返回節點,而是返回數據庫中不存在的id的NodeProxies。這個查詢是在新的Neo4j 2.0 M3數據庫上運行的。有什麼想法嗎?謝謝!