arangosh> var graph_module = require("@arangodb/general-graph");
arangosh> var edgeDefinitions = graph_module._edgeDefinitions();
arangosh> graph_module._extendEdgeDefinitions(edgeDefinitions, graph_module._relation("friend_of", "Customer", "Customer"));
arangosh> graph_module._extendEdgeDefinitions(
........> edgeDefinitions, graph_module._relation(
........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]));
arangosh> graph_module._create("myStore", edgeDefinitions);
{[Graph]
"friend_of" : [ArangoCollection 78962, "friend_of" (type edge, status loaded)],
"Customer" : [ArangoCollection 78954, "Customer" (type document, status loaded)],
"has_bought" : [ArangoCollection 78957, "has_bought" (type edge, status loaded)],
"Company" : [ArangoCollection 78951, "Company" (type document, status loaded)],
"Electronics" : [ArangoCollection 78948, "Electronics" (type document, status loaded)],
"Groceries" : [ArangoCollection 78945, "Groceries" (type document, status loaded)]
}