Create a file named config.yaml in the root directory of the project, and fill in the following content:
BACKEND:
DATABASE: "gremlin"
GREMLIN:
CONNECTION_STRING: "ws://<host>:8182/gremlin"
FILEDB:
VERTEX_FILE: "./tmp/vertex.json"
EDGE_FILE: "./tmp/edge.json"
CACHE:
DATABASE: "memory"
REDIS:
HOST: <host>
PORT: 6379
DB: <database>
PASSWORD: <password>- For
BACKEND, you can chooseDATABASEfromgremlinandfiledb. And fill in the corresponding connection string. - For
CACHE, you can chooseDATABASEfrommemoryandredis. And fill in the correspondingredisconnection information. If you useredis, you should fill theREDISsection, setPASSWORDtonullif you don't have a password.
See help for build.sh, or you can directly run src/py2graph.py to get more options. For detailed usage, see both files respectively.