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

Function SampleNode

euler/core/api/api.cc:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30} // namespace
31
32NodeIdVec SampleNode(const std::vector<int>& node_types, int count) {
33 if (node_types.size() == 1) {
34 return EulerGraph()->SampleNode(node_types[0], count);
35 }
36 return EulerGraph()->SampleNode(node_types, count);
37}
38
39EdgeIdVec SampleEdge(const std::vector<int>& edge_types, int count) {
40 if (edge_types.size() == 1) {

Callers 2

ComputeMethod · 0.50
ComputeMethod · 0.50

Calls 3

EulerGraphFunction · 0.70
sizeMethod · 0.45
SampleNodeMethod · 0.45

Tested by

no test coverage detected