Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potential fix for crd with empty cut #63

Merged
merged 31 commits into from
Oct 30, 2018
Merged

Conversation

MengLiuPurdue
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Oct 19, 2018

Pull Request Test Coverage Report for Build 70

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 27 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.4%) to 91.205%

Files with Coverage Reduction New Missed Lines %
localgraphclustering/ncp.py 1 90.03%
localgraphclustering/triangleclusters.py 1 88.89%
localgraphclustering/ncpplots.py 2 93.1%
localgraphclustering/GraphLocal.py 23 84.94%
Totals Coverage Status
Change from base Build 42: 0.4%
Covered Lines: 1431
Relevant Lines: 1569

💛 - Coveralls

double demominator = _a < _b ? _a : _b;
if (iter->second == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't a denominator of 0 the problem?

(Not being totally familiar with the data stored here, why is it safe to ignore the entry due to i?) What is cond[i] storing ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my understanding, the denominator can be 0 only if the numerator is zero as well.

@@ -163,17 +164,21 @@ vtype graph<vtype,itype>::capacity_releasing_diffusion(vector<vtype>& ref_node,
}
}
vtype length = 0;
vtype idx;
vtype idx = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be initialized in a different way? if idx = 0 why is the rest of the code guaranteed to produce a valid output?

@MengLiuPurdue
Copy link
Collaborator Author

@dgleich Let me know how you think on my latest commit.

@dgleich
Copy link
Collaborator

dgleich commented Oct 26, 2018

Meng, it stilll seems like we can improve this one :)

Keep working on it.

@dgleich
Copy link
Collaborator

dgleich commented Oct 28, 2018

Meng, let's do this -- switch the stages to include two types of tests.

The first type is one that impacts coverage. Primarily this should focus on the python library as that's where we get coverage info :)

The second type doesn't have any coverage info. This just deeply tests algs like CRD. So we only care if the second type passes or not. So coveralls shoudl only run on the first type.

Make sense

@MengLiuPurdue
Copy link
Collaborator Author

Meng, let's do this -- switch the stages to include two types of tests.

The first type is one that impacts coverage. Primarily this should focus on the python library as that's where we get coverage info :)

The second type doesn't have any coverage info. This just deeply tests algs like CRD. So we only care if the second type passes or not. So coveralls shoudl only run on the first type.

Make sense

Sounds good.

@dgleich dgleich merged commit 5bb8abd into kfoynt:master Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants