JanusGraph: 可视化 Gephi 插件安装
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                JanusGraph: 可视化 Gephi 插件安装
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                下載地址
https://gephi.org/
安裝
下一步默認安裝即可
打開安裝插件
打開后發現提示無法連接,并且可用插件顯示為0 (我更新過所以不為0)
點擊“代理配置” 設置代理
安裝插件?Graph?Streaming
?
繼續?
? 重新啟動,安裝完成
?
點擊概覽,會有streaming界面
點擊?文件->新建項目
右鍵啟動
這里可以設置連接端口?
?
在安裝目錄下進入gremlin
$ ./gremlin.sh?\,,,/(o o) -----oOOo-(3)-oOOo----- SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] plugin activated: janusgraph.imports plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities 17:21:58 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable plugin activated: tinkerpop.hadoop plugin activated: tinkerpop.spark plugin activated: tinkerpop.tinkergraph gremlin>?連接
# 使用 tinkerpop.gephi 插件 gremlin> :plugin use tinkerpop.gephi ==>tinkerpop.gephi activated# 查看使用的插件列表 gremlin> :plugin list ==>janusgraph.imports[active] ==>tinkerpop.server[active] ==>tinkerpop.gephi[active] ==>tinkerpop.utilities[active] ==>tinkerpop.sugar ==>tinkerpop.credentials ==>tinkerpop.hadoop[active] ==>tinkerpop.spark[active] ==>tinkerpop.tinkergraph[active]# 創建簡單的 Modern 圖 gremlin> graph = TinkerFactory.createModern() ==>tinkergraph[vertices:6 edges:6]# 連接到 tinkerpop.gephi 插件 gremlin> :remote connect tinkerpop.gephi ==>Connection to Gephi - http://localhost:8080/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33# 設置連接到的端口 gremlin> :remote config port 8088 ==>Connection to Gephi - http://localhost:8088/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33# 設置連接到的host gremlin> :remote config host 192.168.4.236 ==>Connection to Gephi - http://192.168.4.236:8088/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33gremlin> :> graph ==>tinkergraph[vertices:6 edges:6] ==>false至此,圖數據庫中的數據已經導入到Gephi中。
在Prewiew中點擊刷新
美化顯示
選擇布局
?
設置參數
刷新圖顯示
?
設置外觀
?
最終刷新效果如下
?
總結
以上是生活随笔為你收集整理的JanusGraph: 可视化 Gephi 插件安装的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: Kafka JMX监控报错 Failed
- 下一篇: 数据库中的模式分解与无损连接性
