Change Password

Input error
Input error
Input error
Submit

Change Nickname

Current Nickname:
Submit
Search
v4.0
    v4.0

    length() | Path Length

    Parameters, Value

    Path length function returns the length of the path, i.e. the number of edges in the path.

    Syntax:

    • Format: length(<path>)
    • Parameters: see table below
    • Value: ATTR ( number )
    Name Category Specification Description
    path PATH / the path to be calculated

    Common Usage

    Example: Find the shortest paths within 5 steps from card CA001 to CA002, and return the length of found paths

    n({_id == "CA001"}).e()[*:5].n({_id == "CA002"}) as paths
    limit 1
    return length(paths)
    
    Please complete the following information to download this book
    *
    公司名称不能为空
    *
    公司邮箱必须填写
    *
    你的名字必须填写
    *
    你的电话必须填写
    *
    你的电话必须填写