【问题标题】:Can I pass around mgp.ProcCtx and implement parallel graph algorithms in Python that use the actual graph?我可以传递 mgp.ProcCtx 并在 Python 中实现使用实际图形的并行图形算法吗?
【发布时间】:2023-01-26 17:31:45
【问题描述】:

我正在使用包含 MAGE 1.5.1 的 Memgraph Platform 2.6.4。我注意到 MAGE 有一个 interesting part of the code 告诉我您可以在服务器上使用多处理。但是,我可以绕过 mgp.ProcCtx 并在使用实际图形的 Python 中实现并行图形算法,还是我需要像 this example 那样处理图形表示?

【问题讨论】:

    标签: memgraphdb


    【解决方案1】:

    您可以将 mgp.ProcCtx 对象传递给函数并以多处理方式处理它们。但是您不能做的是以多处理方式写入该处理图上的 Memgraph 更改。

    【讨论】:

      猜你喜欢
      • 2010-12-27
      • 1970-01-01
      • 1970-01-01
      • 2016-05-21
      • 1970-01-01
      • 2012-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多