arangosh> var graph_module = require("@arangodb/general-graph");
arangosh> var edgeDefinitions = graph_module._edgeDefinitions(
........> graph_module._relation("friend_of", ["Customer"], ["Customer"]), graph_module._relation(
........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]));
arangosh> graph_module._create("myStore", edgeDefinitions);
{[Graph]
"friend_of" : [ArangoCollection 118081, "friend_of" (type edge, status loaded)],
"Customer" : [ArangoCollection 118071, "Customer" (type document, status loaded)],
"has_bought" : [ArangoCollection 118076, "has_bought" (type edge, status loaded)],
"Company" : [ArangoCollection 118066, "Company" (type document, status loaded)],
"Electronics" : [ArangoCollection 118061, "Electronics" (type document, status loaded)],
"Groceries" : [ArangoCollection 118056, "Groceries" (type document, status loaded)]
}