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; } }
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); }
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); }
gl_sarray::gl_sarray(const std::string& directory) { instantiate_new(); m_sarray->construct_from_sarray_index(directory); }
gl_sarray::gl_sarray() { instantiate_new(); }
gl_sgraph::gl_sgraph(const std::string& directory) { instantiate_new(); m_sgraph->load_graph(directory); }
gl_sgraph::gl_sgraph() { instantiate_new(); }