1
0
Fork 0
Commit Graph

70 Commits

Author SHA1 Message Date
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 46027601ac Merge branch 'devel' into graph_algorithms 2012-06-13 16:19:54 +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
Frank Celler a0d19953e2 removed globals 2012-05-25 00:26:36 +02:00
Frank Celler 67e5ea65b3 console is now a module 2012-05-24 23:59:53 +02:00
Lucas Dohmen 4dd0306d0a Added the Random 500 Test and fixed a bug 2012-05-23 16:21:34 +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 5b05cc0d45 issue #69: added test cases with wrong parameters for inEdges(), outEdges() and edges() 2012-05-21 20:13:56 +02:00
Frank Celler b682357901 added skip list queries 2012-05-21 17:19:17 +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
Frank Celler 615661c0a6 added hash index test 2012-05-12 22:17:28 +02:00
Frank Celler 675c5d0476 unique constraint 2012-05-12 22:09:00 +02:00
Frank Celler 5ba64bafe1 added test 2012-05-12 21:35:56 +02:00
Frank Celler 763e7aba98 renamed to Arango 2012-05-12 14:40:34 +02:00
Frank Celler db46badb0f cleanup 2012-05-10 16:37:42 +02:00
Frank Celler 875746d0d4 fixed doc 2012-05-07 17:35:41 +02:00
Frank Celler f47788fea6 simple query 2012-05-06 20:05:59 +02:00
Frank Celler 032602d300 added documentation and fixes for cap 2012-05-05 23:14:30 +02:00
Frank Celler cadca4a27b unittests 2012-05-02 17:05:38 +02:00
Frank Celler 691bb68f31 fixed limit and skip 2012-05-02 14:28:29 +02:00
Frank Celler 8c872f00b9 more on simple queries 2012-05-01 23:50:40 +02:00
Frank Celler 6211bd88bb added internal 2012-04-30 23:25:39 +02:00
Frank Celler 1ff5f2940a more tests 2012-04-30 12:32:58 +02:00
Frank Celler 054877194c added ignore-null 2012-04-30 11:07:41 +02:00
Frank Celler 9ccbb5b324 unit tests 2012-04-29 14:48:38 +02:00
Frank Celler eea4c94b1a added constraint flag 2012-04-29 14:14:52 +02:00
Frank Celler da508e5b45 tests and minor fixes 2012-04-29 11:47:33 +02:00
Lucas Dohmen e0fc2466e2 Test Suite for GraphModule complete. 2012-04-24 16:44:36 +02:00
Lucas Dohmen 64ff1fa0b0 Completed the Vertex Edges Getters 2012-04-24 16:23:07 +02:00
Lucas Dohmen e2930ae85d Tested Vertex Properties. All Vertex Methods tested. 2012-04-24 16:20:05 +02:00
Lucas Dohmen 6e16fd6554 Get Eddges with Labels from Vertices 2012-04-24 16:12:32 +02:00
Lucas Dohmen 897c5b4446 Added Tests to get Edges for Vertices 2012-04-24 15:59:59 +02:00
Lucas Dohmen 094108bffa Added Tests for adding edges to Vertices 2012-04-24 15:24:09 +02:00
Lucas Dohmen ffd8963064 Tested Graph Creation 2012-04-24 14:32:04 +02:00