1
0
Fork 0
Commit Graph

652 Commits

Author SHA1 Message Date
Frank Celler 191b1338fe issue #98: Unable to change journalSize 2012-07-11 13:42:17 +02:00
Lucas Dohmen 8861bd6410 Moved Graph tests to the correct file 2012-07-10 14:55:19 +02:00
Lucas Dohmen fb605e1247 Betweenness Measurement added to Vertices 2012-07-09 18:09:57 +02:00
Lucas Dohmen c6c9712f82 Added support for geodesics to Graph.js 2012-07-09 16:22:02 +02:00
Oreste Panaia 224614f14a Bitarray index fixes 2012-07-06 12:02:08 +08:00
Oreste Panaia 67d6b7fca0 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-07-05 13:59:46 +08:00
Oreste Panaia c72f44c949 Bitarray indexes update 2012-07-05 13:59:26 +08:00
Jan Steemann 1a43f1d54a documentation update 2012-07-04 13:53:53 +02:00
Jan Steemann be6d64ced6 fixed unittest expectations after fix for issue #121 2012-07-04 12:32:09 +02:00
Jan Steemann 3411a9b98c fixed a few query optimiser bugs, added test cases 2012-06-29 15:26:35 +02:00
Heiko Kernbach 67083c2d12 use->using 2012-06-29 12:00:57 +02:00
Jan Steemann fa3b6a74fa fixed some range optimiser bugs, added test cases 2012-06-29 11:30:44 +02:00
Jan Steemann bafc974623 added test cases for range optimisation, fixed some range optimiser bugs 2012-06-29 10:23:04 +02:00
Oreste Panaia b84c9fefa9 Some bitarray index creation tests 2012-06-29 14:49:52 +08:00
Oreste Panaia a9f9c3af55 trying to upload bitarrays 2012-06-27 14:21:21 +08:00
Lucas Dohmen 07366afcfc Added two measurements to graphs
* diameter
* radius
2012-06-26 15:25:26 +02:00
Oreste Panaia 43309908ec Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
Conflicts:
	arangod/BitIndexes/bitarray.c
	arangod/RestServer/ArangoServer.cpp
	configure
2012-06-26 20:41:04 +08:00
Lucas Dohmen ecf09fc4dc Added distanceTo and two measurements to Vertices
The two measurements are:

* eccentricity
* closeness
2012-06-26 14:17:41 +02:00
Oreste Panaia 20bbdab435 Bitarray index first draft 2012-06-26 20:05:49 +08:00
Lucas Dohmen c6b2b2642c Added Degrees to Vertices, Size and Order to Graphs 2012-06-26 12:51:26 +02:00
Lucas Dohmen ac092872ee Refactoring on Graph.js
All methods reviewed and refactored. The refactorings use the new
ECMA Script 5 methods which are more efficient and precise.
2012-06-24 09:30:30 +02:00
Frank Celler 94c954b8fd application v8 2012-06-21 22:40:11 +02:00
Lucas Dohmen 8682f82dfa Merge branch 'devel' into graph_algorithms 2012-06-20 17:05:45 +02:00
Lucas Dohmen 2745997ad8 Re-Did the optimizations of the monkeypatches 2012-06-20 17:01:14 +02:00
Lucas Dohmen 15eddecc34 Revert "Monkeypatches have their own module now."
This reverts commit d01b16a930cfc5a47174d7e24a1742c20f874318.

Conflicts:
	js/common/modules/monkeypatches.js
2012-06-20 16:43:08 +02:00
Lucas Dohmen 455befdbf6 Monkeypatches loaded by default and refactored
The monkeypatches will now always be loaded a server startup.
I also refactored them.
2012-06-20 16:18:04 +02:00
Lucas Dohmen a31d5e8f27 Monkeypatches have their own module now. 2012-06-20 15:14:48 +02:00
Lucas Dohmen bfa2e09ee6 All "Monkey Patches" now use Object.defineProperty 2012-06-20 14:12:26 +02:00
Jan Steemann 5a74e95f35 allow reusing ids and revision when creating collections and documents 2012-06-19 15:50:52 +02:00
Lucas Dohmen a7d3d50082 Linted graph.js and shell-graph-algorithms.js 2012-06-16 18:31:50 +02:00
Lucas Dohmen c129644fff Added a listed option to commonNeighbors and commonAttributes
If the listed option is given, instead of the number of attributes /
neighbors, the list of the names of the shared attributes / the IDs
of the shared neighbors are returned.
2012-06-16 18:26:41 +02:00
Lucas Dohmen edff65d5c8 Vertex#commonPropertieWith now also has a normalized variant 2012-06-16 18:05:14 +02:00
Lucas Dohmen b3620827d3 Added commonPropertiesWith to Vertex 2012-06-16 18:00:32 +02:00
Lucas Dohmen 2c70ce9291 Reorganization of functionality and tests for Graph.js 2012-06-16 17:38:27 +02:00
Lucas Dohmen c0a94a570b Added a commonNeighborsWith method to Vertex
Returns the number of common neighbors.
2012-06-16 14:58:48 +02:00
Lucas Dohmen 15b0a44aba Edge Exclusion for pathTo function
You can now exclude certain edges in your pathTo function with the
paramater `only` that expects a function that takes an edge as an
argument and returns true if and only if the edge should be used
for the path.

Use Case:
Only include edges on the path that have a rating of x or higher.
2012-06-16 14:26:26 +02:00
Lucas Dohmen 580813f006 Added Support for Weight Functions in pathTo
Instead of just selecting an attribute to get the weight of an edge,
the user can now formulate the computation of the weight of an edge
as a function that takes an edge as an argument and returns the weight.
This allows more flexible weights in the application.
2012-06-16 14:04:37 +02:00
Frank Celler 716b720a7f added /_admin/echo 2012-06-14 20:53:48 +02:00
Lucas Dohmen 46027601ac Merge branch 'devel' into graph_algorithms 2012-06-13 16:19:54 +02:00
Lucas Dohmen e41291c44d Tiny improvement: forEach instead of for 2012-06-13 16:11:26 +02:00
Lucas Dohmen aa17edce23 Refactored Vertex#getNeighbors 2012-06-13 14:01:48 +02:00
Lucas Dohmen ad91d8cdfc The weighted pathTo now also takes a default weight
The default weight is needed, when an edge doesn't
have the specified weight attribute.
The default for this default value is `Infinity`.
2012-06-13 13:48:54 +02:00
Jan Steemann d7ca7ae1b7 added "official" explain API 2012-06-13 13:27:39 +02:00
Lucas Dohmen 7eddaa9259 Added support for weighted graphs to pathTo
The method `pathTo` now also accepts the following option:

* weight: The name of the attribute including the weight
2012-06-13 13:15:21 +02:00
Jan Steemann e3a075057f reference accesses can now use indexes 2012-06-13 12:07:29 +02:00
Lucas Dohmen f11acff837 Enhanced pathTo for directed and labelled graphs
The `pathTo` method accepts an options hash.
Currently supported:

* direction: "both", "outbound", "inbound"
* labels: undefined or Array of Strings
2012-06-13 11:55:26 +02:00
Lucas Dohmen 70ae8d84d4 Small Refactoring for pathesForTree 2012-06-12 15:38:19 +02:00
Lucas Dohmen 104b28b607 Refactored the pathesForTree method
* It's now testable
* It's now in a better OO design
2012-06-12 15:25:06 +02:00
Lucas Dohmen e3a3e5f857 Heavy refactoring of the methods for Dijkstra 2012-06-12 13:24:25 +02:00
Lucas Dohmen 33732898ce Enhanced Vertex#getNeighbors
* getNeighbors now takes the following arguments:
  * direction: 'both', 'outbound' or 'inbound'
  * pathLabels: undefined or Array of Strings
2012-06-12 12:23:09 +02:00
Jan Steemann d84193bce7 explain & optimizer 2012-06-11 17:55:09 +02:00
Frank Celler cc1853688c Merge branch 'devel' of github.com:triAGENS/ArangoDB
Conflicts:
	RestServer/ArangoServer.cpp
	V8Client/arangosh.cpp
2012-06-07 18:00:57 +02:00
Frank Celler 6675e8da2b Merge pull request #102 from jsteemann/master
potential solution for issue #95 (execute jslint)
2012-06-07 08:49:59 -07:00
Lucas Dohmen ea13cfac51 Renamed all occurrences of node to vertex... 2012-06-06 19:14:21 +02:00
Lucas Dohmen 933bc293b6 Added documentation for all pathTo helper functions 2012-06-06 19:11:53 +02:00
Lucas Dohmen 0433236c8b Graph.js: Lint-Free 2012-06-06 18:49:43 +02:00
Frank Celler 203a7006c0 Merge branch 'devel' of github.com:triAGENS/ArangoDB 2012-06-06 18:32:45 +02:00
Lucas Dohmen 020aa12c35 Dijkstra: Finds all shortest pathes now
* Previously only found one shortest path
* Returns the same results as Neo4j
2012-06-06 18:09:57 +02:00
Jan Steemann 7d84873f4f added test cases for ref access 2012-06-06 16:20:23 +02:00
Jan Steemann c21659fbac added more test cases for index access 2012-06-06 15:57:38 +02:00
Lucas Dohmen a41ff384ab Dijkstra finds pathes of correct length. 2012-06-06 14:57:57 +02:00
Frank Celler 6063327d04 fixed --quite for shell, fixed command line for unit-tests 2012-06-06 14:19:47 +02:00
Jan Steemann cfccab47eb issue #100: "count" attribute exists in cursor response with "count: false" 2012-06-06 09:54:39 +02:00
Jan Steemann 60429b39eb issue #100: "count" attribute exists in cursor response with "count: false" 2012-06-06 08:59:55 +02:00
Jan Steemann 0da201adb5 potential fix for issue #100 2012-06-05 09:59:15 +02:00
Frank Celler 0726789ab0 Merge branch 'devel' of github.com:triAGENS/ArangoDB
Conflicts:
	.gitignore
	Ahuacatl/ahuacatl-codegen.h
2012-06-02 11:20:47 +02:00
Frank Celler fe2337b7d4 Merge branch '1.0' of github.com:triAGENS/ArangoDB
Conflicts:
	configure
2012-06-02 11:15:29 +02:00
Frank Celler 7c7d378fb1 preparation for mruby console 2012-06-02 11:13:57 +02:00
Jan Steemann 15a504d023 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-06-01 13:21:20 +02:00
Heiko Kernbach 6a8c0c2400 test suite 2012-06-01 10:33:18 +02:00
Jan Steemann 11612dbe15 fixed a segfault with some broken queries 2012-06-01 09:12:14 +02:00
Jan Steemann bde11ec3b0 added dedicated test cases for arangosh-only functions 2012-05-31 17:49:49 +02:00
Jan Steemann 57fb43fe1e fixed broken functions and help texts in arangosh 2012-05-31 17:32:35 +02:00
Jan Steemann d506033c26 fixed help in arangosh and web admin, fixed several broken functions 2012-05-31 17:30:42 +02:00
Jan Steemann 3ca1e598e2 fixed help in arangosh 2012-05-31 16:46:28 +02:00
Jan Steemann 164b63f7a6 handling special case for empty strings in contains() 2012-05-31 16:25:27 +02:00
Heiko Kernbach 030ba0f2e2 ahuacatl-contains 2012-05-31 14:15:46 +02:00
Jan Steemann 2b841bacf7 contains() 2012-05-31 13:15:00 +02:00
Jan Steemann 0ef03fc006 mini cleanup 2012-05-28 22:10:03 +02:00
Jan Steemann 6f7e11e46c potential solution for issue #95 2012-05-28 22:01:32 +02:00
Jan Steemann 68db2dc0b5 test case for issue #97 2012-05-28 20:52:00 +02:00
Frank Celler 86fcb881e9 fixed === and !== and == and != 2012-05-25 15:33:35 +02:00
Lucas Dohmen a1cf1017c5 Passes the Neo4j 500 Length Test now. 2012-05-25 15:25:13 +02:00
Frank Celler b2d521ee35 cleanup action queues 2012-05-25 14:28:27 +02:00
Frank Celler a0cd51d2fc moved /document => /_api/document 2012-05-25 12:21:02 +02:00
Frank Celler 1e3ab217f3 Merge branch 'devel' of github.com:triAGENS/ArangoDB 2012-05-25 00:26:50 +02:00
Frank Celler a0d19953e2 removed globals 2012-05-25 00:26:36 +02:00
Frank Celler 2184db3303 removed globals 2012-05-25 00:16:40 +02:00
Frank Celler 67e5ea65b3 console is now a module 2012-05-24 23:59:53 +02:00
Frank Celler 988d8090c1 jslint 2012-05-24 23:25:19 +02:00
Frank Celler ef3c8d0de6 cleanup JSLInt 2012-05-24 15:40:48 +02:00
Jan Steemann 693338a0fb renamed some functions 2012-05-24 15:27:29 +02:00
Jan Steemann cf8c339e7c added AQL example queries 2012-05-24 14:34:29 +02:00
Jan Steemann 9d5e80b5b0 double the throughput for simple AQL queries by returning the result set as V8 list instead of a cursor 2012-05-24 12:24:23 +02:00
Frank Celler e5d4c3f9f7 Merge branch 'devel' of github.com:triAGENS/ArangoDB 2012-05-24 12:18:37 +02:00
Frank Celler 682f7c027d added silence flag 2012-05-24 12:17:55 +02:00
Jan Steemann e67d7da686 documentation for AQL functions 2012-05-24 11:25:49 +02:00
Jan Steemann 26ee519b32 fix for issue #89 2012-05-24 00:07:07 +02:00
Jan Steemann 3f539e7bd6 possible fix for issue #82 2012-05-23 21:44:52 +02:00
Jan Steemann 7c0e146246 issue #80: support LENGTH(collection) 2012-05-23 17:50:58 +02:00
Jan Steemann 74f9a39fd3 commit derived file 2012-05-23 16:44:58 +02:00
Jan Steemann 88361fb444 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-05-23 16:40:10 +02:00
Jan Steemann 99fe2199a6 changed implementation of paths function 2012-05-23 16:39:48 +02:00
Lucas Dohmen 4dd0306d0a Added the Random 500 Test and fixed a bug 2012-05-23 16:21:34 +02:00
Frank Celler 2554ce698e fixed printing 2012-05-23 15:58:43 +02:00
Frank Celler 5d30fec5d2 Merge branch 'devel' of github.com:triAGENS/ArangoDB
Conflicts:
	html/admin/js/avocsh1.js
	html/admin/js/master.js
2012-05-23 15:03:08 +02:00
Frank Celler bb96f1c7fa renamed /document => /_api/document 2012-05-23 15:01:44 +02:00
Jan Steemann 1829075aa0 made direction parameter optional for paths function 2012-05-23 13:42:04 +02:00
Frank Celler 724421fef1 cleanup 2012-05-23 12:47:21 +02:00
Frank Celler 0236954f04 Merge branch 'devel' of github.com:triAGENS/ArangoDB
Conflicts:
	html/admin/js/client.js
	html/admin/js/master.js
2012-05-23 11:44:40 +02:00
Jan Steemann 0bf4a241c7 added test cases 2012-05-23 00:13:33 +02:00
Jan Steemann a4b1027690 added functions unique(), reverse(), first(), last() and has() 2012-05-22 22:43:58 +02:00
Jan Steemann 34bfac9774 some more tests 2012-05-22 22:18:30 +02:00
Jan Steemann f1837d67e5 added paths() function 2012-05-22 18:47:19 +02:00
Frank Celler 3daeecc700 renamed /document to /_api/document, /edge to /_api/edge 2012-05-22 16:04:20 +02:00
Jan Steemann 6a75b8affd added collections() function 2012-05-22 13:09:36 +02:00
Frank Celler d3f3cb1f88 Merge branch '0.5' of github.com:triAGENS/ArangoDB into devel 2012-05-22 12:34:18 +02:00
Jan Steemann c928642277 fixed memleaks 2012-05-22 12:22:03 +02:00
Frank Celler 6dc4cbd43d fixed error message 2012-05-22 09:38:36 +02:00
Frank Celler f5c7265911 fixed error message 2012-05-22 09:36:43 +02:00
Jan Steemann 21e5f2353e test 2012-05-22 08:52:48 +02:00
Jan Steemann 5b05cc0d45 issue #69: added test cases with wrong parameters for inEdges(), outEdges() and edges() 2012-05-21 20:13:56 +02:00
Frank Celler 7705fc2ac4 Merge branch 'devel' of github.com:triAGENS/ArangoDB 2012-05-21 18:28:15 +02:00
Frank Celler dd92df134c sk doc 2012-05-21 18:28:00 +02:00
Frank Celler b682357901 added skip list queries 2012-05-21 17:19:17 +02:00
Jan Steemann 46ea63a11c more test cases 2012-05-21 14:57:49 +02:00
Jan Steemann 24d829bb5c added tests for skiplist queries 2012-05-21 14:46:59 +02:00
Frank Celler b64a51844f added lookup skiplist index 2012-05-21 13:51:03 +02:00
Jan Steemann 8e834971fd internally changed the query execution, adjusted query tests 2012-05-21 10:31:05 +02:00
Jan Steemann 4d8e005241 more test cases 2012-05-19 01:41:11 +02:00
Jan Steemann 57efcc2668 added complex tests 2012-05-19 01:17:17 +02:00
Jan Steemann e5cc97633f added tests 2012-05-18 18:56:41 +02:00
Jan Steemann ba7eb326c7 added test cases 2012-05-18 17:18:50 +02:00
Jan Steemann 12df9e7d02 added test cases 2012-05-18 16:51:24 +02:00
Jan Steemann 7fea45cb97 added error code checks for bind parameter tests 2012-05-18 16:11:45 +02:00
Jan Steemann 92392b6c79 fixed tests 2012-05-18 16:05:28 +02:00
Jan Steemann 49990c5288 unified javascript runtime error messages in AQL 2012-05-18 15:52:11 +02:00
Jan Steemann 4188057ecc tried to make geo tests deterministic 2012-05-18 14:47:59 +02:00
Jan Steemann 70385d0f68 added test cases for geo queries 2012-05-18 14:20:23 +02:00
Jan Steemann c019da58b9 improved function argument validation 2012-05-18 13:33:59 +02:00
Jan Steemann 5dc9bf65e0 added NEAR() and WITHIN() functions 2012-05-18 10:11:27 +02:00
Jan Steemann 0077a4dee2 added tests 2012-05-16 20:24:14 +02:00
Jan Steemann fc72722a59 added tests for logical operations 2012-05-16 19:40:06 +02:00
Jan Steemann ab41fc94ae added comments 2012-05-16 19:33:08 +02:00
Jan Steemann 247bba8ecd fixed test cases 2012-05-16 17:06:03 +02:00
Jan Steemann 07207daa19 fixed examples in arangosh, added tests for AHUACATL_PARSE 2012-05-16 16:46:36 +02:00
Lucas Dohmen dd5307de29 Dijkstra, Version 1 2012-05-16 16:25:07 +02:00
Jan Steemann ac4621b315 added test case for bind parameters 2012-05-16 15:45:05 +02:00
Jan Steemann 77a2d45282 fixed ternary operator in AQL, added test cases 2012-05-16 15:15:51 +02:00
Jan Steemann bccb3e48b6 test was not deterministic 2012-05-16 14:39:35 +02:00