检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
1000 directed 否 是否考虑边的方向。 Boolean true或false。 true num_thread 否 线程数。 Integer 1-40。
- directed 否 是否考虑边的方向 Boolean true或false false timeWindow 否 用于进行时间过滤的时间窗 Object 具体请参见表2。
- directed 否 是否考虑边的方向 Boolean 取值为true,不支持false。 true timeWindow 否 用于进行时间过滤的时间窗 Object 具体请参见表2。
参数说明 表1 k跳算法(k-hop)参数说明 参数 是否必选 说明 类型 取值范围 默认值 k 是 跳数 Integer (0-10] - source 是 节点的ID String - - mode 否 方向: OUT:沿出边跳 IN:沿入边跳 ALL:双向跳 String OUT
directed 否 Boolean 是否考虑边的方向,取值为true或false,默认值为true。 weight 否 String 空或字符串。 空:边上的权重、距离默认为“1”。 字符串:对应的边上的属性将作为权重,当某边没有对应属性时,权重将默认为“1”。
directed 否 Boolean 是否考虑边的方向。取值为true或false。默认值为true。 迭代次数(iterations)和收敛精度(convergence)。 算法终止的条件:要么达到设置的最大迭代次数,要么满足收敛精度,满足其一即可。
- directed 否 是否考虑边的方向。 Boolean true或false。 false timeWindow 否 用于进行时间过滤的时间窗 Object 具体请参见表2。
filtered_all_shortest_paths)(2.2.17) 参数说明 表1 parameters参数说明 参数 是否必选 说明 类型 取值范围 默认值 source 是 起点ID String - - - target 是 终点ID String - - directed 否 是否考虑边的方向
directed 否 是否考虑图的方向 Boolean true或false,默认true。 n 否 限制寻找的子图的个数的上限 Integer [1,100000],默认为100。
权重系数(又称阻尼系数) Double 0~1,不包括0和1 0.85 convergence 否 收敛精度 Double 0~1,不包括0和1 0.00001 max_iterations 否 最大迭代次数 Integer 1~2000 1000 directed 否 是否考虑边的方向
- directed 否 是否考虑边的方向。 Boolean true 或false。
alpha 否 权重系数 Double 0~1,不包括0和1 0.85 convergence 否 收敛精度 Double 0~1,不包括0和1 0.00001 max_iterations 否 最大迭代次数 Integer 1~2000 1000 directed 否 是否考虑边的方向
表2 遍历步骤说明 遍历步骤 说明 outV out方向邻居点。 inV in方向邻居点。 bothV out,in方向邻居点。 outE out方向边。 inE in方向边。 bothE both方向边。 otherV 邻点。
String 节点label - directed 否 是否考虑边的方向。 Boolean true 或false true alpha决定跳转概率系数,也称为阻尼系数,是算法内的计算控制变量。
directed 否 Boolean 是否考虑边的方向。默认值为“false”。 num_thread 否 Integer 并发线程数。范围为[1,40],小于“1”会自动置为“1”,大于“40”则自动置为“40”。默认值为“4”。
Object - - 表2 filters元素格式 参数 是否必选 说明 类型 取值范围 默认值 operator 否 表示当前层要做的查询的方向 String out,in 或both out edge_filter 否 表示当前层查询时边的过滤条件。
where x>1) single 2.2.19 有且仅有1个元素满足表达式,返回true single (x in p where x>1) 表8 算法表达式 函数名 支持的最低版本 释义 举例 shortestPath 2.3.2 返回两点间最短路 给定点n,m返回两点间最短路,方向为
gremlin> graph.features() ==>FEATURES 目前暂时不支持以下step命令: tryNext() explain() tree() 父主题: 访问图和分析图
子句支持情况 特性 描述 子句示例 最低版本要求 点Pattern 支持基于label/属性过滤、id过滤的点pattern match (n:movie{title:'hello'}) match (n) where id(n)='xx' 2.2.16 边Pattern 支持有方向
子句支持情况 特性 描述 子句示例 最低版本要求 点Pattern 支持基于label/属性过滤、id过滤的点pattern match (n:movie{title:'hello'}) match (n) where id(n)='xx' 2.2.16 边Pattern 支持有方向