Sample a representative subgraph

Returns a label-stratified, size-capped subgraph intended for visualization. One call replaces the 1 + <edge types> sequential queries a client would otherwise issue to draw an overview, and the default of 200 nodes is the point past which a node-link diagram stops being legible.

post/api/sample

Request body

max_nodesinteger

Upper bound on returned nodes. Capped server-side at 1000.

labelsstring[]

Restrict sampling to these labels. Empty means all labels.

graphstring

Tenant/graph name.

Response

A sampled subgraph

object required

Changes

Changed in 1 of the 17 revisions of this API.1