N
N
nightblaze2016-10-03 09:31:31
go
nightblaze, 2016-10-03 09:31:31

How to store and display graphs?

Good afternoon!
Please tell me which way to dig. I want to make a web editor tailored for graphs. The goal is to learn a new platform (web) and languages ​​(Go, JS, HTML, CSS).
Requirements that both nodes and links be able to store any user defined information.
At the moment, the answers to the questions are:

  1. How to store information in Graph DBMS? Specifically Dgraph . How to store information in SQL or NoSQL is clear, but how about in Dgraph? In other words, I found how to do SELECT, but did not understand how to do INSERT, UPDATE and DELETE.
  2. Maybe it's better to use Cayley
  3. If it is better to use Cayley, then which database should I choose as storage?
  4. To display and edit graphs use https://d3js.org/ ?
  5. Other good tips.

I have no web experience yet, so any advice would be greatly appreciated.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-10-03
@sim3x

Graphs are a rather specific thing.
Graph DBMSs are even more specific . The
chance that you will come across a real task in practice that can be solved using graph subds is extremely small . to make all in the beginning on relational . Yes, there will be a lot of plugs and special approaches, BUT you can apply such approaches in real tasks - make a task on all existing DBMS graphs and compare the result and labor costs in comparison with the first approach

K
Karponter, 2016-10-03
@karponter

Use NodeJS + mongoDB (+ mongoose + express + mongoose-express) for the back end.
Representing graphs in a document-oriented monge will be very easy. + It supports nested collections as a data type. (The declaration of a model of an arbitrary type may not be obvious, so google it right away).
PS In parentheses are modules for NodeJS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question