SNAP Library 6.0, User Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <priorityqueue.h>
Public Member Functions | |
TMaxPriorityQueue () | |
void | Insert (const TVal &X, float Priority) |
void | SetPriority (const TVal &X, float NewPriority) |
float | GetPriority (const TVal &X) |
float | GetMaxPriority () |
TVal | PopMax () |
bool | IsEmpty () |
int | Size () |
void | GetPriorities (THash< TVal, TFlt > &Result) |
Private Member Functions | |
int | Parent (int i) |
int | Left (int i) |
int | Right (int i) |
void | Swap (int i, int j) |
void | MaxHeapify (int i) |
Private Attributes | |
TFltV | Priorities |
THash< TVal, int > | ValToIndex |
TVec< TVal > | IndexToVal |
Definition at line 19 of file priorityqueue.h.
|
inline |
Definition at line 21 of file priorityqueue.h.
|
inline |
Definition at line 57 of file priorityqueue.h.
|
inline |
Definition at line 83 of file priorityqueue.h.
|
inline |
Definition at line 49 of file priorityqueue.h.
|
inline |
Definition at line 23 of file priorityqueue.h.
|
inline |
Definition at line 74 of file priorityqueue.h.
|
inlineprivate |
Definition at line 95 of file priorityqueue.h.
|
inlineprivate |
Definition at line 106 of file priorityqueue.h.
|
inlineprivate |
Definition at line 94 of file priorityqueue.h.
|
inline |
Definition at line 62 of file priorityqueue.h.
|
inlineprivate |
Definition at line 96 of file priorityqueue.h.
|
inline |
Definition at line 31 of file priorityqueue.h.
|
inline |
Definition at line 78 of file priorityqueue.h.
|
inlineprivate |
Definition at line 98 of file priorityqueue.h.
|
private |
Definition at line 92 of file priorityqueue.h.
|
private |
Definition at line 90 of file priorityqueue.h.
|
private |
Definition at line 91 of file priorityqueue.h.