Пример #1
0
gl_sgraph::gl_sgraph(const gl_sframe& vertex_sframe,
                     const gl_sframe& edge_sframe,
                     const std::string& vid_field,
                     const std::string& src_field,
                     const std::string& dst_field) {
  instantiate_new();
  if (!vertex_sframe.empty()) {
    m_sgraph = add_vertices(vertex_sframe, vid_field).m_sgraph;
  }
  if (!edge_sframe.empty()) {
    m_sgraph = add_edges(edge_sframe, src_field, dst_field).m_sgraph;
  }
}
Пример #2
0
gl_sarray::gl_sarray(const std::initializer_list<flexible_type>& values) {
  flex_type_enum dtype = infer_type_of_list(values);
  instantiate_new();
  get_proxy()->construct_from_vector(values, dtype);
}
Пример #3
0
gl_sarray::gl_sarray(const std::vector<flexible_type>& values, flex_type_enum dtype) {
  if (dtype == flex_type_enum::UNDEFINED) dtype = infer_type_of_list(values);
  instantiate_new();
  get_proxy()->construct_from_vector(values, dtype);
}
Пример #4
0
gl_sarray::gl_sarray(const std::string& directory) {
  instantiate_new();
  m_sarray->construct_from_sarray_index(directory);
}
Пример #5
0
gl_sarray::gl_sarray() {
  instantiate_new();
}
Пример #6
0
gl_sgraph::gl_sgraph(const std::string& directory) {
  instantiate_new();
  m_sgraph->load_graph(directory);
}
Пример #7
0
gl_sgraph::gl_sgraph() {
  instantiate_new();
}