mirror of https://gitee.com/bigwinds/arangodb
style
This commit is contained in:
parent
373f581990
commit
55a3bb5929
|
@ -4428,8 +4428,8 @@ function GENERAL_GRAPH_PATHS (graphName, options) {
|
||||||
|
|
||||||
// check graph exists and load edgeDefintions
|
// check graph exists and load edgeDefintions
|
||||||
var graph = DOCUMENT_HANDLE("_graphs/" + graphName);
|
var graph = DOCUMENT_HANDLE("_graphs/" + graphName);
|
||||||
if (!graph) {
|
if (! graph) {
|
||||||
THROW(INTERNAL.errors.ERROR_GRAPH_INVALID_GRAPH, "GRAPH_EDGES");
|
THROW(INTERNAL.errors.ERROR_GRAPH_INVALID_GRAPH, "GRAPH_PATHS");
|
||||||
}
|
}
|
||||||
|
|
||||||
var startCollections = [], edgeCollections = [];
|
var startCollections = [], edgeCollections = [];
|
||||||
|
@ -5835,6 +5835,7 @@ function GRAPH_NEIGHBORS (vertexCollection,
|
||||||
///
|
///
|
||||||
/// @endDocuBlock
|
/// @endDocuBlock
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function GENERAL_GRAPH_NEIGHBORS (graphName,
|
function GENERAL_GRAPH_NEIGHBORS (graphName,
|
||||||
vertexExample,
|
vertexExample,
|
||||||
options) {
|
options) {
|
||||||
|
@ -5844,7 +5845,7 @@ function GENERAL_GRAPH_NEIGHBORS (graphName,
|
||||||
options = { };
|
options = { };
|
||||||
}
|
}
|
||||||
options.fromVertexExample = vertexExample;
|
options.fromVertexExample = vertexExample;
|
||||||
if (!options.direction) {
|
if (! options.direction) {
|
||||||
options.direction = 'any';
|
options.direction = 'any';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5956,6 +5957,7 @@ function GENERAL_GRAPH_NEIGHBORS (graphName,
|
||||||
///
|
///
|
||||||
/// @endDocuBlock
|
/// @endDocuBlock
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function GENERAL_GRAPH_EDGES (
|
function GENERAL_GRAPH_EDGES (
|
||||||
graphName,
|
graphName,
|
||||||
vertexExample,
|
vertexExample,
|
||||||
|
|
Loading…
Reference in New Issue