Commands graph:titan/vertex_sample¶
Make subgraph from vertex sampling.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | graph:titan/vertex_sample |
---|---|
arguments: | graph : <bound method AtkEntityType.__name__ of <trustedanalytics.rest.jsonschema.AtkEntityType object at 0x7f9e68702050>>
size : int32
sample_type : unicode
seed : int64 (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Create a vertex induced subgraph obtained by vertex sampling. Three types of vertex sampling are provided: ‘uniform’, ‘degree’, and ‘degreedist’. A ‘uniform’ vertex sample is obtained by sampling vertices uniformly at random. For ‘degree’ vertex sampling, each vertex is weighted by its out-degree. For ‘degreedist’ vertex sampling, each vertex is weighted by the total number of vertices that have the same out-degree as it. That is, the weight applied to each vertex for ‘degreedist’ vertex sampling is given by the out-degree histogram bin size.
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.