Skip to content

Commit

Permalink
Fix well-fitting prior
Browse files Browse the repository at this point in the history
Merges #16
  • Loading branch information
zietzm authored Jul 29, 2019
1 parent a10f50c commit fd9da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xswap/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,5 @@ def approximate_xswap_prior(source_degree, target_degree, num_edges):
"""
return source_degree * target_degree / (
(source_degree * target_degree) ** 2
+ (num_edges - source_degree - target_degree + 1 ** 2)
+ (num_edges - source_degree - target_degree + 1) ** 2
) ** 0.5

0 comments on commit fd9da6c

Please sign in to comment.