be9ed7e879
* Rename mgp_graph_remove to mgp_graph_delete * Add mgp_graph_detach_delete * Add PyGraph functions * Add _mgp exceptions * Use unified error handling in python wrapper * Ignore clang-tidy warnings * Add mgp.Graph, mgp.Vertex and mgp.Edge mutable functions * Add python write procedure registration * Add `is_write` result field to mg.procedures * Use storage::View::NEW for write procedures * Add simple tests for write procedures * Remove false information about IDs
13 lines
363 B
Python
13 lines
363 B
Python
import mgp
|
|
|
|
|
|
@mgp.read_proc
|
|
def underlying_graph_is_mutable(ctx: mgp.ProcCtx,
|
|
object: mgp.Any) -> mgp.Record(mutable=bool):
|
|
return mgp.Record(mutable=object.underlying_graph_is_mutable())
|
|
|
|
|
|
@mgp.read_proc
|
|
def graph_is_mutable(ctx: mgp.ProcCtx) -> mgp.Record(mutable=bool):
|
|
return mgp.Record(mutable=ctx.graph.is_mutable())
|