Skip to content

gql #

Classes#

GqlResult#

GQL query result with table display, pandas conversion, and iteration.

GqlRow#

A single row from a GQL query result.

Functions#

gql(graph, query, params=None) #

Execute a GQL query against a Raphtory graph view.

Parameters:

Name Type Description Default
graph Any

A Raphtory GraphView to query

required
query Any

A GQL query string

required

Returns:

Type Description

A GqlResult object with table display, pandas conversion, and iteration.

register_procedure(graph, name, input_params, output_params, data) #

Register a mock procedure with the cached coordinator.

Parameters:

Name Type Description Default
graph Any

A Raphtory GraphView (needed to ensure coordinator is initialized)

required
name Any

Procedure name (e.g., "test.my.proc")

required
input_params Any

List of input parameter names

required
output_params Any

List of output parameter names

required
data Any

List of dicts, each dict maps column name -> value

required