arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
arangosh> var g = examples.loadGraph("social");
arangosh> g._paths({direction : 'inbound', minLength : 1, maxLength : 2});
[
{
"source" : {
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
"destination" : {
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WpTBCh6--D",
"name" : "Charly"
},
"edges" : [
{
"_key" : "21024",
"_id" : "relation/21024",
"_from" : "male/charly",
"_to" : "female/diana",
"_rev" : "_WpTBCh6--L",
"type" : "married",
"vertex" : "charly"
}
],
"vertice" : [
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WpTBCh6--D",
"name" : "Charly"
}
]
},
{
"source" : {
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
"destination" : {
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
},
"edges" : [
{
"_key" : "21024",
"_id" : "relation/21024",
"_from" : "male/charly",
"_to" : "female/diana",
"_rev" : "_WpTBCh6--L",
"type" : "married",
"vertex" : "charly"
},
{
"_key" : "21021",
"_id" : "relation/21021",
"_from" : "female/alice",
"_to" : "male/charly",
"_rev" : "_WpTBCh6--J",
"type" : "friend",
"vertex" : "alice"
}
],
"vertice" : [
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WpTBCh6--D",
"name" : "Charly"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
}
]
},
{
"source" : {
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
"destination" : {
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WpTBCh6--B",
"name" : "Bob"
},
"edges" : [
{
"_key" : "21027",
"_id" : "relation/21027",
"_from" : "male/bob",
"_to" : "female/diana",
"_rev" : "_WpTBCi---_",
"type" : "friend",
"vertex" : "bob"
}
],
"vertice" : [
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WpTBCh6--B",
"name" : "Bob"
}
]
},
{
"source" : {
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
"destination" : {
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
},
"edges" : [
{
"_key" : "21027",
"_id" : "relation/21027",
"_from" : "male/bob",
"_to" : "female/diana",
"_rev" : "_WpTBCi---_",
"type" : "friend",
"vertex" : "bob"
},
{
"_key" : "21017",
"_id" : "relation/21017",
"_from" : "female/alice",
"_to" : "male/bob",
"_rev" : "_WpTBCh6--H",
"type" : "married",
"vertex" : "alice"
}
],
"vertice" : [
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WpTBCh6--F",
"name" : "Diana"
},
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WpTBCh6--B",
"name" : "Bob"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
}
]
},
{
"source" : {
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WpTBCh6--B",
"name" : "Bob"
},
"destination" : {
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
},
"edges" : [
{
"_key" : "21017",
"_id" : "relation/21017",
"_from" : "female/alice",
"_to" : "male/bob",
"_rev" : "_WpTBCh6--H",
"type" : "married",
"vertex" : "alice"
}
],
"vertice" : [
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WpTBCh6--B",
"name" : "Bob"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
}
]
},
{
"source" : {
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WpTBCh6--D",
"name" : "Charly"
},
"destination" : {
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
},
"edges" : [
{
"_key" : "21021",
"_id" : "relation/21021",
"_from" : "female/alice",
"_to" : "male/charly",
"_rev" : "_WpTBCh6--J",
"type" : "friend",
"vertex" : "alice"
}
],
"vertice" : [
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WpTBCh6--D",
"name" : "Charly"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WpTBCh6--_",
"name" : "Alice"
}
]
}
]