MCPcopy Create free account
hub / github.com/alibaba/euler / SampleEdge

Function SampleEdge

euler/core/api/api.cc:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39EdgeIdVec SampleEdge(const std::vector<int>& edge_types, int count) {
40 if (edge_types.size() == 1) {
41 return EulerGraph()->SampleEdge(edge_types[0], count);
42 }
43 return EulerGraph()->SampleEdge(edge_types, count);
44}
45
46bool EdgeExist(const EdgeId& eid) {
47 return EulerGraph()->GetEdgeByID(eid) != nullptr;

Callers 1

ComputeMethod · 0.50

Calls 3

EulerGraphFunction · 0.70
sizeMethod · 0.45
SampleEdgeMethod · 0.45

Tested by

no test coverage detected