![]() |
Code Documentation 3.8
Social Network Visualizer
|
Holds a (target, distance) pair for use in Dijkstra's priority queue. More...
#include <global.h>
Public Member Functions | |
| GraphDistance (int t, qreal dist) | |
Public Attributes | |
| int | target |
| qreal | distance |
Holds a (target, distance) pair for use in Dijkstra's priority queue.
distance is qreal, not int: with inverseWeights or Johnson's-algorithm reweighting, a tentative distance is routinely fractional (e.g. 0.25, 0.75), and the priority queue's pop order depends on comparing these values exactly.
|
inline |
| qreal GraphDistance::distance |
| int GraphDistance::target |