1
我想下面的圖形數據存儲在數據庫中的最短路徑計算,Neo4j的對存儲數據
graph.makeEdge("s", "c", "cost", (double) 7);
graph.makeEdge("c", "e", "cost", (double) 7);
graph.makeEdge("s", "a", "cost", (double) 2);
graph.makeEdge("a", "b", "cost", (double) 7);
graph.makeEdge("b", "e", "cost", (double) 2);
然後從web servlet的運行Dijskra algorighm,找到使用存儲的圖最短路徑計算數據。然後,我將打印從servlet到html文件的路徑。
Dijkstra<Double> dijkstra = getDijkstra(graph, 0.0, "s", "e");
hi nawroth,我編輯了這個問題,謝謝 – patrickandroid 2010-05-27 18:28:16
嗨paddydub,我終於想到我找到了你想要的東西。有一陣子,請繼續關注我的回答! – nawroth 2010-05-28 16:59:29
感謝nawroth! – patrickandroid 2010-06-02 20:18:49