Turi Create
4.0
|
Classes | |
class | turi::sgraph |
Typedefs | |
typedef std::vector< flexible_type > | turi::sgraph_vertex_data |
typedef std::vector< flexible_type > | turi::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) |
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.
typedef std::vector<flexible_type> turi::sgraph_vertex_data |
The type of data that can be stored on vertices
Definition at line 22 of file sgraph_types.hpp.
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.
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.
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.
void turi::save_sgraph_to_json | ( | const sgraph & | g, |
std::string | targetfile | ||
) |
Write the content of the graph into a json file.
size_t turi::SGRAPH_BATCH_TRIPLE_APPLY_LOCK_ARRAY_SIZE |
Number of locks used for sgraph batch triple apply (used for python lambda).
size_t turi::SGRAPH_DEFAULT_NUM_PARTITIONS |
The default number of sgraph partitions
size_t turi::SGRAPH_HILBERT_CURVE_PARALLEL_FOR_NUM_THREADS |
Number of threads used for hilber curve parallel for
size_t turi::SGRAPH_INGRESS_VID_BUFFER_SIZE |
Buffer size for vertex deduplication during graph ingress
size_t turi::SGRAPH_TRIPLE_APPLY_EDGE_BATCH_SIZE |
Number of edges to for graph triple_apply to work on as a unit.
size_t turi::SGRAPH_TRIPLE_APPLY_LOCK_ARRAY_SIZE |
Graph Computation Functions Number of locks used for sgraph triple apply.