From 24871b64ef7c20c95eaed7cc6ce5e6a6616d122f Mon Sep 17 00:00:00 2001 From: gschwab Date: Fri, 16 May 2014 13:08:33 +0200 Subject: [PATCH] start implement edges() --- etc/relative/arangod.conf | 10 +++---- .../aardvark/frontend/js/views/footerView.js | 2 +- .../modules/org/arangodb/general-graph.js | 27 ++++++++++++++++++- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/etc/relative/arangod.conf b/etc/relative/arangod.conf index 6cd7d011d7..12dd1cf7d9 100644 --- a/etc/relative/arangod.conf +++ b/etc/relative/arangod.conf @@ -4,8 +4,8 @@ # remove-on-drop = true [server] -disable-authentication = true -endpoint = tcp://localhost:8529 +disable-authentication = false +endpoint = tcp://0.0.0.0:8888 threads = 5 # reuse-address = false @@ -15,7 +15,7 @@ threads = 3 [javascript] startup-directory = ./js app-path = ./js/apps -frontend-development = false +frontend-development = true [ruby] action-directory = ./mr/actions/system @@ -29,8 +29,8 @@ severity = human username = root password = -disable-dispatcher-kickstarter = true -disable-dispatcher-frontend = true +disable-dispatcher-kickstarter = false +disable-dispatcher-frontend = false data-path = ./cluster/data log-path = ./cluster/log agent-path = ./bin/etcd-arango diff --git a/js/apps/system/aardvark/frontend/js/views/footerView.js b/js/apps/system/aardvark/frontend/js/views/footerView.js index c73137b934..859a4d8667 100644 --- a/js/apps/system/aardvark/frontend/js/views/footerView.js +++ b/js/apps/system/aardvark/frontend/js/views/footerView.js @@ -134,4 +134,4 @@ } }); -}()); +}()); \ No newline at end of file diff --git a/js/common/modules/org/arangodb/general-graph.js b/js/common/modules/org/arangodb/general-graph.js index 238905aca2..021d06a4bb 100644 --- a/js/common/modules/org/arangodb/general-graph.js +++ b/js/common/modules/org/arangodb/general-graph.js @@ -140,9 +140,34 @@ var _directedRelationDefinition = function (relationName, fromVertexCollections, }; }; +//////////////////////////////////////////////////////////////////////////////// +/// @brief load a graph. +//////////////////////////////////////////////////////////////////////////////// + +var _graph = function() { + return new Graph(); +}; +var Graph = function() { +}; + +Graph.prototype.edges = function(vertexId) { + var edgeCollections = this.edgeCollections(); + + edgeCollections.forEach( + function(edgeCollection) { + edgeCollection.documents().forEach( + function(document) { + + } + ); + } + ); + + +}; // ----------------------------------------------------------------------------- // --SECTION-- MODULE EXPORTS @@ -150,7 +175,7 @@ var _directedRelationDefinition = function (relationName, fromVertexCollections, exports._undirectedRelationDefinition = _undirectedRelationDefinition; exports._directedRelationDefinition = _directedRelationDefinition; - +exports._graph = _graph; // -----------------------------------------------------------------------------