2016-03-08 75 views
2

我想通過使用gephi流泰坦圖。我按照這裏的說明進行操作 http://www.tinkerpop.com/docs/3.0.0.M7/#gephi-plugin如何使用gephi流化泰坦圖?

我正在使用Gephi 0.9.1,打開新的項目並在gephi中啓動主服務器。 然後我開始激活gephi插件精怪控制檯並連接到gephi,卻得到了錯誤「未找到」如下:

gremlin> g = TinkerFactory.createModern() 
==>tinkergraph[vertices:6 edges:6] 
gremlin> :remote connect tinkerpop.gephi 
==>Connection to Gephi - http://localhost:8080/workspace0 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7 
gremlin> :> g 
==>tinkergraph[vertices:6 edges:6] 
Not Found 
Display stack trace? [yN] y 
groovyx.net.http.HttpResponseException: Not Found 
    at groovyx.net.http.HTTPBuilder.defaultFailureHandler(HTTPBuilder.java:642) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:497) 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1074) 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) 
    at groovy.lang.Closure.call(Closure.java:423) 
    at groovyx.net.http.HTTPBuilder$1.handleResponse(HTTPBuilder.java:494) 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164) 
    at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:506) 
    at groovyx.net.http.HTTPBuilder.post(HTTPBuilder.java:343) 
.......... 

我不知道爲什麼發生這個錯誤。請告訴我如何使用Gephi傳輸泰坦圖。謝謝你的幫助。

回答

2

這是TinkerPop文檔的一個非常舊的版本。我不確定M7和GA之間的指示有什麼變化,但是你應該看看Titan版本中的當前文檔。換句話說,你想要的版本TinkerPop 3.0.1-incubating。你可以在這裏找到文檔:

http://tinkerpop.apache.org/docs/3.0.1-incubating/#gephi-plugin

我要說的是,爲使這種情況發生的方向是相當「一步一步」,所以也許你錯過了一些重要的事情。從您的錯誤中我最好的猜測是,在您嘗試發送圖形之前,您並未在Gephi中啓用流式插件。我的第二個猜測是,您正在嘗試使用Geoff 0.9的新版本,該版本尚未將該流媒體插件與該版本進行了更新。那裏可能有一些incompatibility。如果是這種情況,我會恢復到0.8.x測試版,因爲所有文檔都基於該版本的Gephi。

編輯:請注意,截至TinkerPop 3.2.1,支持Gephi 0.9.x。

+0

謝謝,似乎GraphStreaming插件版本1.0.0不適用於Gephi 0.9.1。 Gephi 0.8.2不支持java 7.8,所以我需要等待GraphStreaming的下一次更新。 – MichaelP

+0

嗯 - 我以爲我一直在使用Gephi 0.8與Java 8.你確定是這樣嗎? –

+0

我在這裏下載適用於mac os的gephi 0.8.2版本https://github.com/gephi/gephi/releases/tag/v0.8.2。 Gephi無法在macos上打開。 – MichaelP