Hello,

I am trying to compute decimal numbers using graph algorithms and store it in new edges that I create? My code

```
MATCH path = (a:person) -[:connected_to*]- (b:person)
WHERE id(a) < id(b)
WITH a, b, length(path) as weight
CREATE (a)-[e:co_authors]->(b)
SET e.weight=1/weight
```

is setting 0 as a the e.weight and not 1/2 or 1/3 or whatever the algorithm finds. How can I work around this?