fixed connects=0 bug

this bug is caused by neo4j
the allSimplePaths() function does not return properly when maxDepth = 1
fixed by "manually" checking whether connects=0