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

Function GetNodeFloat32Feature

euler/core/api/api.cc:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63FloatFeatureVec GetNodeFloat32Feature(const NodeIdVec& node_ids,
64 const std::vector<int>& fids) {
65 FloatFeatureVec features(node_ids.size());
66 #ifdef OPENMP
67 #pragma omp parallel for
68 #endif
69 for (int32_t i = 0 ; i < static_cast<int32_t>(node_ids.size()); ++i) {
70 auto node = EulerGraph()->GetNodeByID(node_ids[i]);
71 if (node != nullptr) {
72 node->GetFloat32Feature(fids, &features[i]);
73 } else {
74 features[i].resize(fids.size());
75 }
76 }
77 return features;
78}
79
80UInt64FeatureVec GetNodeUint64Feature(const NodeIdVec& node_ids,
81 const std::vector<int>& fids) {

Callers 1

ComputeMethod · 0.50

Calls 5

GetNodeFeatureIdsFunction · 0.85
GetNodeByIDMethod · 0.80
EulerGraphFunction · 0.70
sizeMethod · 0.45
GetFloat32FeatureMethod · 0.45

Tested by

no test coverage detected