public void updateGraph(String type, JSONObject node) {
JSONObject jsonObj = new JSONObject();
jsonObj.put(type, node);
//System.out.println(jsonObj.toString());
try {
HttpResponse<String> response = Unirest.post(url + "?operation=updateGraph")
.header("content-type", "application/json")
.header("cache-control", "no-cache")
.body(jsonObj.toString())
.asString();
Integer i = 0;
if (type.equals("ae")) {
this.ECount++;
i = this.ECount;
}
if (type.equals("an")) {
this.VCount++;
i = this.VCount;
}
System.out.println(i + " " + response.getStatus() + " " + response.getStatusText() + " " + response.getBody());
} catch(UnirestException e) {
e.printStackTrace();
}
}
Gephi.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:exportJanusGraphToGephi
作者:
评论列表
文章目录