Turi Create  4.0
Main SGraph Objects

Classes

class  turi::sgraph
 

Typedefs

typedef std::vector< flexible_typeturi::sgraph_vertex_data
 
typedef std::vector< flexible_typeturi::sgraph_edge_data
 

Functions

void turi::save_sgraph_to_json (const sgraph &g, std::string targetfile)
 
void turi::save_sgraph_to_csv (const sgraph &g, std::string targetdir)
 
template<typename T , typename FLEX_TYPE = T>
bool turi::sgraph::add_vertex_field (std::vector< std::vector< T >> &column, std::string column_name, flex_type_enum column_type, size_t group=0)
 
template<typename T , typename FLEX_TYPE = T>
bool turi::sgraph::replace_vertex_field (std::vector< std::vector< T >> &column, std::string column_name, size_t group=0)
 

Variables

size_t turi::SGRAPH_TRIPLE_APPLY_LOCK_ARRAY_SIZE
 
size_t turi::SGRAPH_BATCH_TRIPLE_APPLY_LOCK_ARRAY_SIZE
 
size_t turi::SGRAPH_TRIPLE_APPLY_EDGE_BATCH_SIZE
 
size_t turi::SGRAPH_DEFAULT_NUM_PARTITIONS
 
size_t turi::SGRAPH_INGRESS_VID_BUFFER_SIZE
 
size_t turi::SGRAPH_HILBERT_CURVE_PARALLEL_FOR_NUM_THREADS
 

Detailed Description

Typedef Documentation

◆ sgraph_edge_data

typedef std::vector<flexible_type> turi::sgraph_edge_data

The type of data that can be stored on edges

Definition at line 27 of file sgraph_types.hpp.

◆ sgraph_vertex_data

The type of data that can be stored on vertices

Definition at line 22 of file sgraph_types.hpp.

Function Documentation

◆ add_vertex_field()

template<typename T , typename FLEX_TYPE >
bool turi::sgraph::add_vertex_field ( std::vector< std::vector< T >> &  column,
std::string  column_name,
flex_type_enum  column_type,
size_t  group = 0 
)

Same as add_vertex_field, but all values are in memory The column must exist. Assertion failure otherwise.

Definition at line 838 of file sgraph.hpp.

◆ replace_vertex_field()

template<typename T , typename FLEX_TYPE >
bool turi::sgraph::replace_vertex_field ( std::vector< std::vector< T >> &  column,
std::string  column_name,
size_t  group = 0 
)

Same as replace_vertex_field, but all values are in memory The column must exist. Assertion failure otherwise.

Definition at line 866 of file sgraph.hpp.

◆ save_sgraph_to_csv()

void turi::save_sgraph_to_csv ( const sgraph g,
std::string  targetdir 
)

Write the content of the graph into a collection csv files under target directory. The vertex data are saved to vertex-groupid-partitionid.csv and edge data are saved to edge-groupid-partitionid.csv.

◆ save_sgraph_to_json()

void turi::save_sgraph_to_json ( const sgraph g,
std::string  targetfile 
)

Write the content of the graph into a json file.

Variable Documentation

◆ SGRAPH_BATCH_TRIPLE_APPLY_LOCK_ARRAY_SIZE

size_t turi::SGRAPH_BATCH_TRIPLE_APPLY_LOCK_ARRAY_SIZE

Number of locks used for sgraph batch triple apply (used for python lambda).

◆ SGRAPH_DEFAULT_NUM_PARTITIONS

size_t turi::SGRAPH_DEFAULT_NUM_PARTITIONS

The default number of sgraph partitions

◆ SGRAPH_HILBERT_CURVE_PARALLEL_FOR_NUM_THREADS

size_t turi::SGRAPH_HILBERT_CURVE_PARALLEL_FOR_NUM_THREADS

Number of threads used for hilber curve parallel for

◆ SGRAPH_INGRESS_VID_BUFFER_SIZE

size_t turi::SGRAPH_INGRESS_VID_BUFFER_SIZE

Buffer size for vertex deduplication during graph ingress

◆ SGRAPH_TRIPLE_APPLY_EDGE_BATCH_SIZE

size_t turi::SGRAPH_TRIPLE_APPLY_EDGE_BATCH_SIZE

Number of edges to for graph triple_apply to work on as a unit.

◆ SGRAPH_TRIPLE_APPLY_LOCK_ARRAY_SIZE

size_t turi::SGRAPH_TRIPLE_APPLY_LOCK_ARRAY_SIZE

Graph Computation Functions Number of locks used for sgraph triple apply.