MCPcopy Create free account
hub / github.com/alibaba/GraphScope / initVerticesEdges

Function initVerticesEdges

analytical_engine/test/graphx_loader_test.cc:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36std::string getHostName() { return boost::asio::ip::host_name(); }
37
38void initVerticesEdges(gs::fid_t fid, gs::fid_t fnum, int32_t vnums,
39 std::vector<int64_t>& oids,
40 std::vector<int64_t>& src_oids,
41 std::vector<int64_t>& dst_oids) {
42 for (gs::fid_t i = fid; i < fnum * vnums; i += fnum) {
43 oids.push_back(i);
44 }
45 for (gs::fid_t i = fid; i < fnum * (vnums - 1); i += fnum) {
46 src_oids.push_back(i);
47 dst_oids.push_back(i + 1);
48 }
49}
50
51void initLongData(std::vector<int64_t>& result, int cnt) {
52 for (int i = 0; i < cnt; ++i) {

Callers 1

mainFunction · 0.85

Calls 1

push_backMethod · 0.65

Tested by

no test coverage detected