Current section

Files

Jump to
rbt_weave lib weave graph.ex
Raw

lib/weave/graph.ex

defmodule Weave.Graph do
@moduledoc """
Graph conflict detection powered by Rust.
Provides conflict-of-interest pattern detection on subgraphs
using cycle detection, path matching, and hub concentration
algorithms.
"""
@doc """
Returns `\"ok\"` if the Rust NIF is loaded and functional.
"""
defdelegate health_check, to: Weave.Native
@doc """
Detects conflict-of-interest patterns in a subgraph.
Both arguments are JSON strings. Returns `{:ok, json}` with
detected patterns or `{:error, reason}`.
"""
defdelegate detect_conflicts(subgraph_json, opts_json), to: Weave.Native
end