Return a random source and target node for which at least one metapath with path count information exists in the database. The implementation chooses a random row from the PathCount table, such that source-target pairs with many metapaths are more likely to be selected than source-target pairs with few metapaths.

GET /v1/random-node-pair/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "source_id": 35216,
    "target_id": 1269,
    "n_metapaths": 5,
    "pathcount_table_random_id": 44049456,
    "pathcount_table_max_id": 169602979
}