日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

JanusGraph: 可视化 Gephi 插件安装

發布時間:2024/8/23 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 插件安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。