Turi Create  4.0
turi::sgraph_compute::vertex_partition_exchange Struct Reference

#include <core/storage/sgraph_data/sgraph_synchronize_interface.hpp>

Public Attributes

size_t partition_id
 id of the partition that vertices belong to.
 
std::vector< std::pair< size_t, sgraph_vertex_data > > vertices
 
std::vector< size_t > field_ids
 A subset of field ids the vertex data contain.
 

Detailed Description

Storing a subset of vertex data of a subset of vertices from an sgraph partition.

The vertex data can be a subset of fields, but all vertices in the same exchange object must contain the same set of fields.

Note
This really is implementation detail and is used to allow graph computation methods that are implemented in Python

Definition at line 37 of file sgraph_synchronize_interface.hpp.

Member Data Documentation

◆ vertices

std::vector<std::pair<size_t, sgraph_vertex_data> > turi::sgraph_compute::vertex_partition_exchange::vertices

index and data pair of the vertices to be exchanged. vertices[i] : (vindex, vdata) where vindex is the local_id of the vertex in the partition; and vdata contains the subset of vertex data. The subset is defined by field_ids.

Definition at line 49 of file sgraph_synchronize_interface.hpp.


The documentation for this struct was generated from the following file: