将数据流传输到gephi的工具
GephiStreamer的Python项目详细描述
gephistreamer
===
python类,用于将图形流式处理到gephi
![演示](http://matthieu-totet.fr/koumin/wp-content/uploads/2015/12/gephistreamdemo.gif)
install
==
` pip install gephistreamer `
快速使用
==
=
`` python
` ``基本导入
gephistreamer导入图
>从gephistreamer的gephistreamer导入图
;创建拖缆
根据需要进行调整:streamer.gephiws(hostname=“localhost”,port=8080,workspace=“workspace0”)
创建一个节点,然后添加自定义的节点属性
>流。添加节点(节点,节点b)
custom_property=“hello”)
stream.add_edge(edge_ab)
```
如何
=
使用“streamer”类描述要执行的操作:
*add_node
*change_node
*delete_node
*add_edge
*change_edge
*delete_edge
流媒体](https://marketplace.gephi.org/plugin/graph-streaming/)已安装并以“主模式”激活。
![主模式](http://matthieu totet.fr/koumin/wp content/uploads/2013/07/screenhunter_01-jul.-30-08.39.jpg)
gephiws
==
gephiws类作为websocket调用与gephi通信。
gephi rest
=
gephirest类作为rest调用与gephi通信。
自动提交
=
默认情况下,所有操作都将触发“提交”并将信息发送给gephi。您仍然可以使用老方法,方法是请求a
``python
stream=streamer.streamer(streamer.gephirest(),auto_commit=false)
[.actions..]
stream.commit()将所有缓冲的操作发送到gephi
```
===
python类,用于将图形流式处理到gephi
![演示](http://matthieu-totet.fr/koumin/wp-content/uploads/2015/12/gephistreamdemo.gif)
install
==
` pip install gephistreamer `
快速使用
==
=
`` python
` ``基本导入
gephistreamer导入图
>从gephistreamer的gephistreamer导入图
;创建拖缆
根据需要进行调整:streamer.gephiws(hostname=“localhost”,port=8080,workspace=“workspace0”)
创建一个节点,然后添加自定义的节点属性
>流。添加节点(节点,节点b)
custom_property=“hello”)
stream.add_edge(edge_ab)
```
如何
=
使用“streamer”类描述要执行的操作:
*add_node
*change_node
*delete_node
*add_edge
*change_edge
*delete_edge
流媒体](https://marketplace.gephi.org/plugin/graph-streaming/)已安装并以“主模式”激活。
![主模式](http://matthieu totet.fr/koumin/wp content/uploads/2013/07/screenhunter_01-jul.-30-08.39.jpg)
gephiws
==
gephiws类作为websocket调用与gephi通信。
gephi rest
=
gephirest类作为rest调用与gephi通信。
自动提交
=
默认情况下,所有操作都将触发“提交”并将信息发送给gephi。您仍然可以使用老方法,方法是请求a
``python
stream=streamer.streamer(streamer.gephirest(),auto_commit=false)
[.actions..]
stream.commit()将所有缓冲的操作发送到gephi
```