title: Create arango graph from an edge collection
body: <p>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).</p>
  
  <p>I have two collections. A collection of vertices we'll call <code>People</code>, and an edge collection, <code>Relationships</code>.</p>
  
  <p>Following the <a href="https://docs.arangodb.com/3.0/Manual/Graphs/GeneralGraphs/index.html" rel="nofollow">manual</a> I can create a graph based on <code>People</code>:</p>
  
  <pre><code>var graph_module = require("@arangodb/general-graph");
  var graph = graph_module._create("population");
  
  graph._addVertexCollection("People");
  </code></pre>
  
  <p>But I know that <code>People</code> 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 <code>Relationships</code> since, by definition, all docs in edge collections have the <code>_to</code> and <code>_from</code> fields, from which the graph can be fully specified.</p>
  
  <p>I find the <a href="https://docs.arangodb.com/3.0/Manual/Graphs/GeneralGraphs/Management.html" rel="nofollow">next pages of the manual</a> 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.</p>