Gephi

 

Ubuntu 18.04 Unable to launch gephi-0.9.2

I downloaded gephi from its official website. Then I followed the steps to install gephi.

cd gephi-0.9.2/bin
./gephi

However, nothing happended.

This issue tells us that gephi is only compatible with java8, so I do the following steps:

  • Download java8 withsudo apt install openjdk-8-jdk

  • edit gephi.conf (which is located in gephi-0.9.2/etc/gephi.conf) with jdkhome="/usr/lib/jvm/java-8-openjdk-amd64"

I have also seen discussion about openjdk and oraclejdk, while I didn’t dig into this question. It worked, that’s enough:)

Here is another issue which came in the middle step:

Failed to load module "canberra-gtk-module"

This issue is solved by

sudo apt install libcanberra-gtk-module

具体使用方法

具体的使用方法参见官方文档,这个官方文档很短,边看边做的话花个一个多小时就可以了解到gephi的使用方法。可以看出来这个软件有很多类似快捷键的操作方法,比如拖动的时候需要用右键拖。这样或许也可以让界面看起来整洁一些。以下记录一些常用的东西。并非文档翻译。

但是同时也需要注意的是,gephi还存在着很多的bug,这一点可以从github repo的issue中看出,如果在看文档的时候发现有一些无法解决的问题,可能是gephi的问题。

如何拖动

放大缩小: 鼠标滚轮

拖动图:右键拖动

如何调整节点大小

如何调整节点与节点标签的距离

如何只展示一部分的label

参考论坛上的这个帖子