G2Engine Finding Networks

Finding Networks

findNetworkByEntityID

findNetworkByRecordID() finds all entities surrounding a requested set of entities. This includes the requested entities, paths between them, and relations to other nearby entities. Returns a JSON document that identifies the path between the each set of search entities (if the path exists), and the information for the entities in the path.

g2_engine.findNetworkByEntityID(entity_list_as_json, max_degree, buildout_degree, max_entities, response_bytearray,g2_engine_flags)
Parameters
  • entity_list_as_json: (str) A list of entities, specified by ENTITY_ID (JSON document)
  • max_degree: (int) The maximum number of degrees in paths between search entities.
  • buildout_degree: (int) The number of degrees of relationships to show around each search entity.
  • max_entities: (int) The maximum number of entities to return in the discovered network.
  • response_bytearray: (bytearray) Object to store the output of the method.
  • g2_engine_flags: (int [optional]) One or more flags used to determine response document content. Applicable flags are listed here findNetwork* flags)
Click to expand `findNetworkByEntityID()` example

findNetworkByRecordID

findNetworkByRecordID() finds all entities surrounding a requested set of entities by their RECORD_ID values. This includes the requested entities, paths between them, and relations to other nearby entities. Returns a JSON document that identifies the path between the each set of search entities (if the path exists), and the information for the entities in the path.

g2_engine.findNetworkByRecordID(record_list_as_json, max_degree, buildout_degree, max_entities, response_bytearray, g2_engine_flags)
Parameters
  • record_list_as_json: (str) A list of entities, specified by DATA_SOURCE and RECORD_ID (JSON document).
  • max_degree: (int) The maximum number of degrees in paths between search entities.
  • buildout_degree: (int) The number of degrees of relationships to show around each search entity.
  • max_entities: (int) The maximum number of entities to return in the discovered network.
  • response_bytearray: (bytearray) Object to store the output of the method.
  • g2_engine_flags: (int [optional]) One or more flags used to determine response document content. Applicable flags are listed here findNetwork* flags)
Click to expand `findNetworkByRecordID()` example