Skip to content
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

[WIP] Introduce grin apis #1191

Open
wants to merge 85 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
baa166f
draft commit of grin apis
andydiwenzhu Feb 10, 2023
926b662
pre implement arrow fragment by grin apis
andydiwenzhu Feb 13, 2023
d789df9
fix nbr, adjlist, project & dests
andydiwenzhu Feb 13, 2023
22b938e
macro format
andydiwenzhu Feb 14, 2023
a526c0d
reorg iterator logic & partition logic & property row logic
andydiwenzhu Feb 15, 2023
88cc56a
grin api implementations
andydiwenzhu Feb 20, 2023
e90d1d8
some fixes
andydiwenzhu Feb 21, 2023
812bafa
add doxygen comments
andydiwenzhu Feb 24, 2023
f2bf332
refine grin *.cc
andydiwenzhu Feb 26, 2023
8ee63d8
compile ok
andydiwenzhu Feb 27, 2023
fd890eb
update docs
andydiwenzhu Mar 1, 2023
b6f3a1d
a mixed example and updated docs
andydiwenzhu Mar 2, 2023
ee9f86c
refactor macro/type/func names
andydiwenzhu Mar 3, 2023
9ab9bb3
format func parameters & add vertex ordering predicate
andydiwenzhu Mar 6, 2023
caf908c
update macros and docs
andydiwenzhu Mar 9, 2023
62d008a
update docs
andydiwenzhu Mar 10, 2023
5d58284
refactor array-style access & vertex ordering
andydiwenzhu Mar 15, 2023
faabc0c
quick fix
andydiwenzhu Mar 15, 2023
c022184
reorg
andydiwenzhu Mar 16, 2023
aa267a2
use grin headers as submodule
andydiwenzhu Mar 16, 2023
0c6d17a
update docs
andydiwenzhu Mar 17, 2023
5de8334
add iterators
andydiwenzhu Mar 17, 2023
0268287
remove pointers in _T structs
andydiwenzhu Mar 20, 2023
b16338a
refine partition impl
andydiwenzhu Mar 20, 2023
9ba798a
refine partition & update headers
andydiwenzhu Mar 21, 2023
b8f21e1
debug grin_test
andydiwenzhu Mar 21, 2023
3d848a7
hot fix grin header
andydiwenzhu Mar 21, 2023
d3082d6
fix list filter return new value
andydiwenzhu Mar 21, 2023
90cc495
build libvineyard_grin lib
andydiwenzhu Mar 21, 2023
161b5c7
fix get edge from adjacentlist
andydiwenzhu Mar 22, 2023
0c275e5
implement vertex/edge total num (by type) methods
andydiwenzhu Mar 24, 2023
722725b
implement iodests in grin fragment
andydiwenzhu Mar 24, 2023
5323302
update docs
andydiwenzhu Mar 24, 2023
b241677
implement destroys
andydiwenzhu Mar 28, 2023
165ffaa
rename & update impl
andydiwenzhu Mar 28, 2023
b0c0fef
fix get properties by name
andydiwenzhu Mar 28, 2023
799109d
fix for destroy value and name
andydiwenzhu Mar 29, 2023
b924bef
add destroy partitioned graph handler impl
andydiwenzhu Mar 29, 2023
5560acf
add get graph from storage
andydiwenzhu Mar 29, 2023
102ec98
refine get value from property table
andydiwenzhu Mar 29, 2023
a17798a
refine type cast
andydiwenzhu Mar 30, 2023
86d8b37
remove limits.h
andydiwenzhu Mar 31, 2023
1716bba
add rust gen and reorg predefine.h
andydiwenzhu Mar 31, 2023
6cff974
refine rust codegen
andydiwenzhu Apr 12, 2023
aa1d053
refine doc after removing local complete
andydiwenzhu Apr 12, 2023
7cc4086
update storage feature protobuf impl
andydiwenzhu Apr 13, 2023
305a1d8
impl vertex primary key & gie schema converter
andydiwenzhu Apr 17, 2023
4d8ff04
update gie schema proto in grin
andydiwenzhu Apr 18, 2023
9fba8d1
rename trait in storage feature proto to feature to distinguish trait…
andydiwenzhu Apr 18, 2023
11324ec
make sure grin.so has C interface
andydiwenzhu Apr 21, 2023
080d662
fix for c tests
andydiwenzhu Apr 24, 2023
e1b21be
revert submodule reorg
andydiwenzhu Apr 24, 2023
43068ed
fix for test
andydiwenzhu May 4, 2023
ddc9e0d
expand value APIs and remove datatype.h impls
andydiwenzhu May 7, 2023
6088c02
impl fast_vertex_ref trait
andydiwenzhu May 8, 2023
b8c41d7
imsync datatype with schema
andydiwenzhu May 8, 2023
05c270f
change some handlers into integers for better performance
andydiwenzhu May 8, 2023
6dfe5b9
add fast vertex ref to message
andydiwenzhu May 8, 2023
ac480ce
impl error code
andydiwenzhu May 8, 2023
29b6e7f
quick fix insert string to row
andydiwenzhu May 9, 2023
d964311
add error_code to rust codegen
andydiwenzhu May 9, 2023
6f80b2d
null value in rust codegen and errorcode update
andydiwenzhu May 9, 2023
bdee5bd
grin api rename
andydiwenzhu May 10, 2023
823689c
add protoc to cmake
andydiwenzhu May 10, 2023
d46d4d7
remove total num impls
andydiwenzhu May 10, 2023
c58e8c7
fix original id impl
andydiwenzhu May 12, 2023
86cba7c
fix shared ptr copy problem in Graph_T
andydiwenzhu May 12, 2023
18b4abd
impl for value/original_id update
andydiwenzhu May 14, 2023
9581461
fix grin include
andydiwenzhu May 15, 2023
97d7435
small fixes
andydiwenzhu May 15, 2023
e5d179b
fix some adjlist bug
andydiwenzhu May 16, 2023
3c6c180
fix adjacent list bug
andydiwenzhu May 16, 2023
3c0367c
fix adjacent bug
andydiwenzhu May 16, 2023
7dd3cf5
change vertex handler from void* to int64
andydiwenzhu May 17, 2023
da59a45
grin graph cache optimize
andydiwenzhu May 18, 2023
301a923
update codegen rs
andydiwenzhu May 19, 2023
9148ed7
is_simple in adjlist
andydiwenzhu May 19, 2023
d3a44f4
optimize vertexlist and adjlist impl
andydiwenzhu May 21, 2023
5582d1b
update v6d impl for removing table from property
andydiwenzhu May 22, 2023
6fd6086
fix for remove column macros
andydiwenzhu May 22, 2023
3c6b783
fix get string bug
andydiwenzhu May 23, 2023
cd3ce9f
remove used code in arrow fragment group
andydiwenzhu May 23, 2023
c5e5b3a
fix simple vertex/adj list init bugs
andydiwenzhu May 23, 2023
a04fc92
optimize if branch using likely
andydiwenzhu May 24, 2023
e35a263
remove const value ptr support in v6d for inefficiency
andydiwenzhu May 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix simple vertex/adj list init bugs
andydiwenzhu committed May 23, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c5e5b3af19c4348d8381798caee0a99b2ab6b9ae
13 changes: 11 additions & 2 deletions modules/graph/grin/c/test.c
Original file line number Diff line number Diff line change
@@ -964,11 +964,20 @@ void test_partition(int argc, char** argv) {
}


void test_topology_structure(int argc, char** argv) {
void test_topology_vertex_list(int argc, char** argv) {
GRIN_GRAPH g = get_graph(argc, argv);

printf("vnum: %zu, enum: %zu\n", grin_get_vertex_num(g), grin_get_edge_num(g));

#ifdef GRIN_ENABLE_GRAPH_PARTITION
GRIN_VERTEX_LIST vl = grin_get_vertex_list(g);
GRIN_VERTEX_TYPE vtype = grin_get_vertex_type_by_name(g, "person");
GRIN_VERTEX_LIST svl = grin_select_type_for_vertex_list(g, vtype, vl);
GRIN_VERTEX_LIST mvl = grin_select_master_for_vertex_list(g, svl);
size_t mvl_sz = grin_get_vertex_list_size(g, mvl);
printf("master vertex list size: %zu\n", mvl_sz);
#endif

grin_destroy_graph(g);
}

@@ -1061,7 +1070,7 @@ void test_topology_adjacent_list(int argc, char** argv, GRIN_DIRECTION dir) {
}

void test_topology(int argc, char** argv) {
test_topology_structure(argc, argv);
test_topology_vertex_list(argc, argv);
test_topology_adjacent_list(argc, argv, OUT);
test_topology_adjacent_list(argc, argv, IN);
}
1 change: 1 addition & 0 deletions modules/graph/grin/src/topology/adjacentlist.cc
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ GRIN_ADJACENT_LIST grin_get_adjacent_list(GRIN_GRAPH g, GRIN_DIRECTION d, GRIN_V
al->etype = _g->edge_label_num();
if (al->etype == 1) {
al->is_simple = true;
al->etype = 0;
__grin_init_simple_adjacent_list(_g, al);
} else {
al->is_simple = false;
1 change: 1 addition & 0 deletions modules/graph/grin/src/topology/vertexlist.cc
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ GRIN_VERTEX_LIST grin_get_vertex_list(GRIN_GRAPH g) {
vl->vtype = _g->vertex_label_num();
if (vl->vtype == 1) {
vl->is_simple = true;
vl->vtype = 0;
__grin_init_simple_vertex_list(_g, vl);
} else {
vl->is_simple = false;