Alan Plum
69e63c2c64
Strict mode all the things.
2015-04-09 00:22:05 +02:00
Willi Goesgens
ace14bb257
lintify the common testsuite. This should reduce our valgrind false positives.
2015-02-04 20:06:33 +01:00
Alan Plum
606da1e3e8
Removed jslint headers from server/client/common modules.
2014-09-02 22:14:56 +02:00
Jan Steemann
4a99cde395
jslintified several tests
2014-02-01 01:50:58 +01:00
Jan Steemann
44b3237882
moved server-only tests to js/server/tests
...
this hopefully removes some future confusion about the tests
also moved some graph stuff into js/common as client-side graphs did not fully work
make logfile path accessible
2013-12-04 22:05:00 +01:00
Frank Celler
edef5feacc
fixed tests
2013-01-17 23:45:19 +01:00
Frank Celler
3c21a87366
more cleanup
2013-01-17 16:01:15 +01:00
a-brandt
f2288b5900
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
2013-01-15 09:08:28 +01:00
a-brandt
60c8ad808f
Changed graph moudule to use _key
2013-01-15 09:07:31 +01:00
Frank Celler
1612f22319
moved graph to org/arangodb/graph
2013-01-09 22:49:56 +01:00
Lucas Dohmen
463045e17c
The pathTo method now supports graph-wide caching
...
This is the first step to support measurements. The data for the tests
has been added.
2012-07-18 16:00: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
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
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
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
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
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
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
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
Lucas Dohmen
a41ff384ab
Dijkstra finds pathes of correct length.
2012-06-06 14:57:57 +02:00
Lucas Dohmen
a1cf1017c5
Passes the Neo4j 500 Length Test now.
2012-05-25 15:25:13 +02:00
Lucas Dohmen
4dd0306d0a
Added the Random 500 Test and fixed a bug
2012-05-23 16:21:34 +02:00
Lucas Dohmen
dd5307de29
Dijkstra, Version 1
2012-05-16 16:25:07 +02:00
Lucas Dohmen
0b58cf8875
First version of Dijkstra
2012-05-13 20:59:00 +02:00