Lines Matching defs:source
44 StateId source; // If kNoStateId, use the Fst's initial state
58 : state_queue(q), arc_filter(filt), source(src), delta(d),
65 // ShortestDistance(source) when 'retain' is true for improved
66 // efficiency when calling multiple times from different source states
91 void ShortestDistance(StateId source);
106 vector<StateId> sources_; // Source ID for ith state in 'distance_',
113 // Compute the shortest distance. If 'source' is kNoStateId, use
117 StateId source) {
146 if (source == kNoStateId)
147 source = fst_.Start();
149 while (distance_->size() <= source) {
155 while (sources_.size() <= source)
157 sources_[source] = source_id_;
159 (*distance_)[source] = Weight::One();
160 rdistance_[source] = Weight::One();
161 enqueued_[source] = true;
163 state_queue_->Enqueue(source);
226 // This computes the shortest distance from the 'opts.source' state to
251 sd_state.ShortestDistance(opts.source);