I'm working in arangosh (the ArangoDB Shell) trying to put together some graph analyses (which I'll move over to Foxx later, if I can get this working).
I have two collections. A collection of vertices we'll call People
, and an edge collection, Relationships
.
Following the manual I can create a graph based on People
:
var graph_module = require("@arangodb/general-graph");
var graph = graph_module._create("population");
graph._addVertexCollection("People");
But I know that People
does not contain the information necessary to connect the vertices in this graph. If anything, I'd rather simply create the graph from the edge collection Relationships
since, by definition, all docs in edge collections have the _to
and _from
fields, from which the graph can be fully specified.
I find the next pages of the manual to be absolutely baffling (my apologies to the authors) and would appreciate any guidance on how to either directly create a graph from an edge collection, or incorporate information from an edge collection into an existing graph.