1
0
Fork 0

start implement edges()

This commit is contained in:
gschwab 2014-05-16 13:08:33 +02:00
parent 6c496866b4
commit 24871b64ef
3 changed files with 32 additions and 7 deletions

View File

@ -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

View File

@ -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;
// -----------------------------------------------------------------------------