Skip to content

Instantly share code, notes, and snippets.

@robinfang
Created September 20, 2016 06:02
Show Gist options
  • Select an option

  • Save robinfang/4b2bf687c851e0425bddf8c1439d7d1b to your computer and use it in GitHub Desktop.

Select an option

Save robinfang/4b2bf687c851e0425bddf8c1439d7d1b to your computer and use it in GitHub Desktop.
#pragma once
struct Node_time {
int node_id;
double trial_time;
Node_time(int i, double t): node_id(i), trial_time(t) {}
bool operator<(const Node_time &rhs) const {
return trial_time > rhs.trial_time;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment