neo4jphp icon indicating copy to clipboard operation
neo4jphp copied to clipboard

Path::count() and Path::getLength() are essentially the same

Open jgillmanjr opened this issue 10 years ago • 0 comments

Path::getLength() just calls Path::count().

Path::count() documentation also indicates it counts the relations in a path, which isn't true as it gives a count of nodes or relations in a path depending on the set context.

Path::getLength() should probably count the number of relations in a path, as the doc block indicates, and the doc block for Path::count() should be updated to indicate it returns a count based on the context set.

jgillmanjr avatar Mar 04 '14 17:03 jgillmanjr