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 26528, "friend_of" (type edge, status loaded)],
"Customer" : [ArangoCollection 26523, "Customer" (type document, status loaded)],
"has_bought" : [ArangoCollection 26545, "has_bought" (type edge, status loaded)],
"Company" : [ArangoCollection 26532, "Company" (type document, status loaded)],
"Electronics" : [ArangoCollection 26537, "Electronics" (type document, status loaded)],
"Groceries" : [ArangoCollection 26541, "Groceries" (type document, status loaded)]
}