Skip to content

Commit d46d4d7

Browse files
committed
remove total num impls
1 parent 823689c commit d46d4d7

File tree

5 files changed

+1
-61
lines changed

5 files changed

+1
-61
lines changed

modules/graph/grin/c/test.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,6 @@ void test_property_topology(int argc, char** argv) {
249249
const char* vt_name = grin_get_vertex_type_name(g, vt);
250250
const char* et_name = grin_get_edge_type_name(g, et);
251251

252-
#ifdef GRIN_ENABLE_GRAPH_PARTITION
253-
GRIN_PARTITIONED_GRAPH pg = get_partitioend_graph(argc, argv);
254-
size_t tvnum = grin_get_total_vertex_num_by_type(pg, vt);
255-
printf("total vertex num of %s: %zu\n", vt_name, tvnum);
256-
size_t tenum = grin_get_total_edge_num_by_type(pg, et);
257-
printf("total edge num of %s: %zu\n", et_name, tenum);
258-
grin_destroy_partitioned_graph(pg);
259-
#endif
260-
261252
#ifdef GRIN_ENABLE_VERTEX_LIST
262253
GRIN_VERTEX_LIST vl = grin_get_vertex_list(g);
263254

modules/graph/grin/rust/grin_v6d.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,6 @@ extern "C" {
400400
arg2: i64,
401401
) -> GrinVertexRef;
402402

403-
#[cfg(feature = "grin_enable_graph_partition")]
404-
#[allow(unused)]
405-
pub fn grin_get_total_vertex_num(arg1: GrinPartitionedGraph) -> usize;
406-
407-
#[cfg(feature = "grin_enable_graph_partition")]
408-
#[allow(unused)]
409-
pub fn grin_get_total_edge_num(arg1: GrinPartitionedGraph) -> usize;
410-
411403
#[cfg(feature = "grin_trait_select_master_for_vertex_list")]
412404
#[allow(unused)]
413405
pub fn grin_select_master_for_vertex_list(
@@ -1064,20 +1056,6 @@ extern "C" {
10641056
#[allow(unused)]
10651057
pub fn grin_get_edge_num_by_type(arg1: GrinGraph, arg2: GrinEdgeType) -> usize;
10661058

1067-
#[cfg(all(feature = "grin_enable_graph_partition", feature = "grin_with_vertex_property"))]
1068-
#[allow(unused)]
1069-
pub fn grin_get_total_vertex_num_by_type(
1070-
arg1: GrinPartitionedGraph,
1071-
arg2: GrinVertexType,
1072-
) -> usize;
1073-
1074-
#[cfg(all(feature = "grin_enable_graph_partition", feature = "grin_with_edge_property"))]
1075-
#[allow(unused)]
1076-
pub fn grin_get_total_edge_num_by_type(
1077-
arg1: GrinPartitionedGraph,
1078-
arg2: GrinEdgeType,
1079-
) -> usize;
1080-
10811059
#[cfg(feature = "grin_assume_by_type_vertex_original_id")]
10821060
#[allow(unused)]
10831061
pub fn grin_get_vertex_by_original_id_by_type(

modules/graph/grin/src/partition/topology.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ extern "C" {
1818
#include "graph/grin/include/partition/topology.h"
1919
}
2020

21-
#ifdef GRIN_ENABLE_GRAPH_PARTITION
22-
size_t grin_get_total_vertex_num(GRIN_PARTITIONED_GRAPH pg) {
23-
auto _pg = static_cast<GRIN_PARTITIONED_GRAPH_T*>(pg);
24-
if (_pg->lgs.size() == 0) return 0;
25-
return _pg->lgs[0]->GetTotalVerticesNum();
26-
}
27-
28-
size_t grin_get_total_edge_num(GRIN_PARTITIONED_GRAPH pg) {
29-
auto _pg = static_cast<GRIN_PARTITIONED_GRAPH_T*>(pg);
30-
return _pg->pg->total_edge_num();
31-
}
32-
#endif
33-
3421
#ifdef GRIN_TRAIT_SELECT_MASTER_FOR_VERTEX_LIST
3522
GRIN_VERTEX_LIST grin_select_master_for_vertex_list(GRIN_GRAPH g, GRIN_VERTEX_LIST vl) {
3623
auto _g = static_cast<GRIN_GRAPH_T*>(g)->g;

modules/graph/grin/src/property/topology.cc

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@ size_t grin_get_edge_num_by_type(GRIN_GRAPH g, GRIN_EDGE_TYPE etype) {
2929
}
3030
#endif
3131

32-
#if defined(GRIN_ENABLE_GRAPH_PARTITION) && defined(GRIN_WITH_VERTEX_PROPERTY)
33-
size_t grin_get_total_vertex_num_by_type(GRIN_PARTITIONED_GRAPH pg, GRIN_VERTEX_TYPE vtype) {
34-
auto _pg = static_cast<GRIN_PARTITIONED_GRAPH_T*>(pg);
35-
if (_pg->lgs.size() == 0) return 0;
36-
return _pg->lgs[0]->GetTotalVerticesNum(vtype);
37-
}
38-
#endif
39-
40-
#if defined(GRIN_ENABLE_GRAPH_PARTITION) && defined(GRIN_WITH_EDGE_PROPERTY)
41-
size_t grin_get_total_edge_num_by_type(GRIN_PARTITIONED_GRAPH pg, GRIN_EDGE_TYPE etype) {
42-
auto _pg = static_cast<GRIN_PARTITIONED_GRAPH_T*>(pg);
43-
return _pg->pg->total_edge_num_by_type(etype);
44-
}
45-
#endif
46-
47-
4832
#ifdef GRIN_ASSUME_BY_TYPE_VERTEX_ORIGINAL_ID
4933
GRIN_VERTEX grin_get_vertex_by_original_id_by_type(GRIN_GRAPH g, GRIN_VERTEX_TYPE vtype, GRIN_VERTEX_ORIGINAL_ID oid) {
5034
auto _g = static_cast<GRIN_GRAPH_T*>(g)->g;

0 commit comments

Comments
 (0)