Coder Social home page Coder Social logo

visualization-neo4j-using-java's People

Contributors

mp2930696631 avatar mystarryworld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

visualization-neo4j-using-java's Issues

ToJson类源码

import java.io.FileNotFoundException;

import java.io.FileOutputStream;

import java.io.IOException;

public class ToJson {

private String json = "";

//将格式化节点数据和关系数据拼凑成完整的json数据

public ToJson(StringBuffer relationNodesBuffer, StringBuffer relationBuffer){

StringBuffer result = new StringBuffer("");

result.append("{");

result.append(relationNodesBuffer);

result.append(",");

result.append("\n");//换行

result.append(relationBuffer);

result.append("}");



json = result.toString();

}

//将json数据写入文件

public void writeJson(){

try {

    FileOutputStream fileOutputStream = new FileOutputStream("D:\\Idea\\Workspace\\TestTraining\\web\\data.json");

    fileOutputStream.write(json.getBytes());

    fileOutputStream.close();

} catch (FileNotFoundException e) {

    e.printStackTrace();

} catch (IOException e) {

    e.printStackTrace();

}

}

//返回完整的json数据

public String getJson(){

return json;

}
}

缺少ToJson代码

为了赚点csdn积分,煞费苦心,文件单独上传,目录结构打乱。各种文件都下全了,积分都给了,你到时代码给全啊。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.