-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add graph_datacell and sparse_graph_datacell #96
Conversation
bc3dfbe
to
68ac1da
Compare
b64b58a
to
694bb38
Compare
0b8c3da
to
c8f2436
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
c8f2436
to
c7a4d08
Compare
src/data_cell/graph_datacell.h
Outdated
}; | ||
|
||
template <typename IOTmpl> | ||
GraphDataCell<IOTmpl, false>::GraphDataCell(const JsonType& graph_json_params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: graph_json_params
and simply to graph_params
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/data_cell/graph_interface.cpp
Outdated
namespace vsag { | ||
|
||
GraphInterfacePtr | ||
GraphInterface::MakeInstance(const JsonType& json_obj, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
json_obj -> build_conf / build_params ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/data_cell/graph_interface.cpp
Outdated
return std::make_shared<GraphDataCell<MemoryBlockIO, false>>( | ||
graph_param, io_param, common_param); | ||
} | ||
if (io_string == IO_TYPE_VALUE_MEMORY_IO) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: else if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
namespace vsag { | ||
|
||
SparseGraphDataCell::SparseGraphDataCell(const JsonType& graph_json_params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simply to graph_params ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
SparseGraphDataCell::SparseGraphDataCell(const JsonType& graph_json_params, | ||
const IndexCommonParam& common_param) | ||
: allocator_(common_param.allocator_), neighbors_(allocator_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Here depends the fields initialize sequence
can change to: neighbors_(common_param.allocator_)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- graph_datacell for bottom graph - sparse_graph_datacell for high level graph Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
c7a4d08
to
98c0a3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
issue: #40