Calculate the centrality metrics for a network

post/centrality
Internal-Use Only

Calculates the centrality metrics of each object on a network.

Request Samples

1

Response Samples

1{
2 "description": "An example of the response from /centrality showing the calculated metrics for each object on the network.",
3 "value": {
4 "name": "items",
5 "accept": "application/vnd.sas.network.analytics.centrality.metrics",
6 "items": [
7 {
8 "id": "policy#1",
9 "degree": 2,
10 "eigen": 1,
11 "close": 1,
12 "between": 1,
13 "influence1": 0.6666666666666666,
14 "influence2": 0.6666666666666666
15 },
16 {
17 "id": "claim#1",
18 "degree": 1,
19 "eigen": 0.7071067811865479,
20 "close": 0.6666666666666666,
21 "between": 0,
22 "influence1": 0.3333333333333333,
23 "influence2": 0.6666666666666666
24 },
25 {
26 "id": "claim#2",
27 "degree": 1,
28 "eigen": 0.7071067811865479,
29 "close": 0.6666666666666666,
30 "between": 0,
31 "influence1": 0.3333333333333333,
32 "influence2": 0.6666666666666666
33 }
34 ]
35 }
36}

Request Body

The request to /centrality for calculating the centrality metrics for the objects on a network. The network is represented by a collection of edges, that is, the relationships between the objects.

NameTypeRequiredDescription
version
integer
false

The representation version (1).

edges
array [object]
false

The edges in the network.

Responses

StatusMeaningDescription
200OKOK.Schema
400Bad RequestThe request is malformed or contains invalid values.Schema