c# - Neo4j APOC A* 通过路径
问题描述
我正在尝试使用 APOC A* 进行路由:
match(s:Station {Name: "A"}), (e:Station { Name: "B"})
CALL apoc.algo.aStar(s, e,'Road>' ,'Length','Lat','Lon') YIELD path, weight
RETURN path, weight LIMIT 1
我将如何通过任何通过点指定?目前我必须将完整路径拆分为块 A -> B、B -> C、C -> D 等等。
public class Station {
public long Id {get;set;}
public string Name {get;set;}
public double Lat {get;set;}
public double Lon {get;set;}
}
public class Road {
public double Length {get;set;}
}
谢谢。
解决方案
推荐阅读
- forms - 如何访问子表单中的实体实例?
- amazon-web-services - 如何将 env var 设置为 AWS EMR 主节点
- python - 是否可以模拟以二进制和文本模式读写文件的平台?
- python - 在 Python 中检查浮点数是否介于两个数字之间的优雅方法?
- maven - Micronaut - 使用 Maven 编译 Kotlin 代码
- sql-server - SQL Server 2017 性能 - 查询参数
- r - 通过 r 中其他列的上下文顺序标记数据帧的行块
- android - 如何使用平面图 rxJava 执行并发任务
- javascript - React 路由器 5.0.0 在 webpack 生产构建中失败(不变式失败:你不应该使用
外面 ) - java - 如何获取使用 JDK 的 HttpClient 订阅的响应的状态代码?