Hanzo
OpenapiGraph

Walk the edges from a seed set, bounded

Walk the edges from a seed set, bounded

POST /v1/graph/neighbors

Addresshttps://api.hanzo.ai/v1/graph/neighbors
MethodPOST
OperationgraphNeighbors
AuthAuthorization: Bearer $HANZO_API_KEY

Walk the edges from a seed set, bounded

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
as_ofbodystringAsOf walks the graph as it stood at an instant, RFC 3339.
depthbodyintegerDepth is how many hops.
directionbodystringDirection is out, in or both. Out follows an edge from its entity to its value — what the node points at; in follows it the other way — what points at the…
relationbodystringRelation narrows the walk to one edge relation. Absent follows all.
seedsbodystring[]Seeds is where the walk starts.

Response

StatusBodyMeaning
200graphNeighborsOutok

200 body — 4 fields.

FieldInTypeAlwaysDescription
boundbodyintegerBound is the ceiling this walk was held to, the same for every caller, so Truncated can be read against a number rather than guessed at.
depthbodyintegerDepth is the deepest hop count actually reached.
entitiesbodystring[]Entities is everything reached, the seeds included, ordered by the fewest hops that reach each one and then by key.
truncatedbodybooleanTruncated says the bound stopped the walk.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Graph API · All Hanzo APIs · Interactive reference

How is this guide?

On this page