Skip to content

GraphAnalytics

Perform analytics on the graph

Endpoint: /api/graph/graphanalytics

Tags: Graph

API Details

GET /api/graph/graphanalytics
schema: z.object({
tenantId: Str({ description: "ID of the tenant" }),
analytics: z.object({
type: z.enum([
"centrality",
"community_detection",
"shortest_path",
"connected_components",
"degree_distribution",
"entity_count_by_type",
"relationship_count_by_type"
]),
parameters: z.record(z.any()).optional(),
}),
}),

Returns the analytics results

schema: z.object({
success: Bool(),
results: z.any(),
}),

Bad request

schema: z.object({
success: Bool(),
error: Str(),
}),

Unauthorized

schema: z.object({
success: Bool(),
error: Str(),
}),

View Source