mirror of https://gitee.com/bigwinds/arangodb
20 lines
417 B
Plaintext
20 lines
417 B
Plaintext
arangosh> var examples = require("org/arangodb/graph-examples/example-graph.js");
|
|
arangosh> var graph = examples.loadGraph("routeplanner");
|
|
arangosh> graph._countCommonNeighbors({isCapital : true}, {isCapital : true});
|
|
[
|
|
{
|
|
"frenchCity/Paris" : [
|
|
{
|
|
"germanCity/Berlin" : 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"germanCity/Berlin" : [
|
|
{
|
|
"frenchCity/Paris" : 3
|
|
}
|
|
]
|
|
}
|
|
]
|