neo4j - 是否可以使用 apoc.path.spanningTree() 中的属性过滤关系?
问题描述
我需要从节点获取生成树。关系具有数字 update_time 属性。生成树应该只包含最近的关系(update_time >= period_start)。我尝试使用 apoc.path 程序,但似乎它们不允许根据关系属性进行过滤,只能根据关系类型进行过滤。
是否可以使用关系属性运行 apoc.path.spanningTree() ,如果没有,那么最佳解决方案是什么?
MATCH (user:User {id: 555})
CALL apoc.path.spanningTree(user, {
limit: 10000,
maxDepth:7,
labelFilter:"User",
relationshipFilter:"CONNECTED" // need to filter by update_time here
}) YIELD path
RETURN path;
解决方案
推荐阅读
- selenium - 试图在 selenium 和 beautifulsoup 的空列表中获取 url
- ffmpeg - -use_wallclock_as_timestamps 在直播中增加延迟
- python - 在一个循环中将所有数据帧合并在一起
- visual-studio-code - 如何在 Visual Studio Code 中轻松地在 python、pascal 和 javascript 语言之间进行切换?
- c# - 一次替换多个文本框中的 '\n'
- c# - 局部变量 - 开关盒
- amazon-web-services - 除非值包含在创建表期间设置的主键,否则 Dynamo db 将不允许将数据插入表中?
- azure - Azure DevOps for ADF 中的完整模式部署
- oracle - 在 Oracle PLSQL 过程的输出中需要帮助
- logging - 日志中的 Wazuh 代理连接失败和损坏的有效负载错误