Repository navigation
v0.9.3
A correctness release: GitHub issues #122–#125, a heap overflow in DFS,
four graph algorithms that gave wrong results, and lost or mistyped
property values. A new test suite checks every graph algorithm against
NetworkX. The openCypher TCK pass count moves from 3822 to 3823 of
3880 (98.5%, zero regressions).
Fixed
- Dijkstra and A* weights (#122, GQLITE-T-0377): integer weights were
read as 1, and parallel edges shared one weight. Weights now come from
integer and float properties, matched to each edge by its id. A* loaded
weights but did not use them. - Bare boolean conditions (#123, GQLITE-T-0378):
CASE WHEN p.active,
WHERE p.active, andany(x IN list WHERE x)read a true boolean
property as false. - UNWIND values in CREATE and MERGE (#124, GQLITE-T-0379):
UNWIND $rows AS row CREATE (:Item {id: row.id})stored no properties.
Literal lists of maps created no nodes, floats were cut to integers,
booleans and nulls were skipped, and expressions such astoString(i)or
row.a * 2were dropped. MERGE stored UNWIND values as text.
Upgrade note: data written before byUNWIND … MERGEwith numbers or
booleans is stored as text; a MERGE after the upgrade matches typed
values, so it does not match those old rows. - PageRank (#125, GQLITE-T-0380): the rank of nodes without out-edges
was lost, so scores summed to less than 1.pageRank,topPageRankand
personalizedPageRanknow give standard PageRank scores. - DFS heap overflow (GQLITE-T-0381): DFS wrote past its stack buffer on
graphs with more than two edges per node, which could crash the process. - Louvain (GQLITE-T-0382): results could be worse than every node alone,
and cliques were split. It is now multi-level Louvain with the standard
modularity gain. - Label propagation (GQLITE-T-0383): labels oscillated on stars and
paths, which gave disconnected communities. Updates are asynchronous and
every community is connected.communityOf,communityMembers,
communityCountandlabelPropagationoutside a plainRETURNgive the
same communities. - Eigenvector centrality (GQLITE-T-0384): the result depended on whether
iterationswas odd or even on periodic graphs. - Triangle count (GQLITE-T-0385): a self-loop counted as a triangle.
- Edge properties in expressions (GQLITE-T-0386):
r.w + 1gave11
and[r.w]gave["1"]. - Booleans (GQLITE-T-0387):
[x IN list], slices andlist[0]gave
1/0fortrue/false;CREATE (:X {t: NOT false})stored1. - UNWIND + MATCH + CREATE (GQLITE-T-0388): properties that read the
UNWIND variable were not stored.
Documentation
- The algorithm reference showed
CALL algo() YIELD …, which is not
supported; it now showsRETURN algo(…)and the result keys (#125). - SQL examples that read algorithm results with
json_each(cypher(…))
returned no rows; they now read$[0].column_0.
Tests
bindings/python/tests/test_algorithms_oracle.pychecks every algorithm
against NetworkX on special and seeded random graphs.
networkxis added to thedevextra.tests/tck/baseline.jsonregenerated (3823 / 3880).
Known issue
On Linux, some queries through the row-wise write pipeline can abort with free(): invalid pointer, for example UNWIND [1, 2] AS i MATCH (n) CREATE (n)-[:S {i: i}]->(:M). Fixed in v0.9.4; upgrade if you run on Linux.
Full changelog: v0.9.2...v0.9.3