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

Function GetEdgeFloat32Feature

euler/core/api/api.cc:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148FloatFeatureVec GetEdgeFloat32Feature(const EdgeIdVec& edge_ids,
149 const std::vector<int>& fids) {
150 FloatFeatureVec features(edge_ids.size());
151 for (size_t i = 0 ; i < edge_ids.size(); ++i) {
152 auto edge = EulerGraph()->GetEdgeByID(edge_ids[i]);
153 if (edge != nullptr) {
154 edge->GetFloat32Feature(fids, &features[i]);
155 } else {
156 features[i].resize(fids.size());
157 }
158 }
159 return features;
160}
161
162UInt64FeatureVec GetEdgeUint64Feature(const EdgeIdVec& edge_ids,
163 const std::vector<int32_t>& fids) {

Callers 1

ComputeMethod · 0.85

Calls 5

GetEdgeFeatureIdsFunction · 0.85
GetEdgeByIDMethod · 0.80
EulerGraphFunction · 0.70
sizeMethod · 0.45
GetFloat32FeatureMethod · 0.45

Tested by

no test coverage detected