Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
44
Issues
44
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
2c084876
Commit
2c084876
authored
Jun 19, 2019
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve_sbm_fugacities(): Improve numerical stability with zero degrees
parent
6a60a564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/graph_tool/generation/__init__.py
src/graph_tool/generation/__init__.py
+1
-0
No files found.
src/graph_tool/generation/__init__.py
View file @
2c084876
...
...
@@ -1234,6 +1234,7 @@ def solve_sbm_fugacities(b, ers, out_degs=None, in_degs=None, multigraph=False,
if
multigraph
:
x
[
x
==
1
]
=
0.999
x
[
x
==
0
]
=
0.001
x
=
numpy
.
arctanh
(
2
*
x
-
1
)
else
:
x
[
x
==
0
]
=
1e-4
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment