Skip to content

Commit adde2be

Browse files
committed
Pull request #232: Release/2.4 visualization
Merge in HYP/hypernetx from release/2.4_visualization to develop * commit '7e915833cb189db49f86ef4654ce19f2331f0216': bump: version 2.3.13 → 2.4.0 fix pre-commit add widget
2 parents 2b78b47 + 7e91583 commit adde2be

File tree

7 files changed

+890
-9
lines changed

7 files changed

+890
-9
lines changed

.cz.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.commitizen]
22
name = "cz_conventional_commits"
3-
version = "2.3.13"
3+
version = "2.4.0"
44
version_provider = "poetry"
55
version_files = [
66
"pyproject.toml",

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import os
2020

2121

22-
__version__ = "2.3.13"
22+
__version__ = "2.4.0"
2323

2424

2525
# If extensions (or modules to document with autodoc) are in another directory,

hypernetx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from hypernetx.utils import *
1212
from hypernetx.utils.toys import *
1313

14-
__version__ = "2.3.13"
14+
__version__ = "2.4.0"

hypernetx/drawing/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def get_set_layering(H, collapse=True):
194194

195195
return levels
196196

197+
197198
def layout_with_radius(B, node_and_edge_radius=1, **kwargs):
198199
"""
199200
Convenience function allowing the user to specify ideal radii for nodes and edges in the drawing
@@ -217,17 +218,16 @@ def layout_with_radius(B, node_and_edge_radius=1, **kwargs):
217218
dict
218219
mapping of node and edge positions to R^2
219220
"""
220-
221+
221222
# get radii encodings and convert to dictionary
222223
radius_dict = dict(zip(B, inflate(B, node_and_edge_radius)))
223-
224+
224225
# edges weights are the sum of the radii of the edge endpoints
225226
for u, v, d in B.edges(data=True):
226-
d['weight'] = radius_dict.get(u, 0) + radius_dict.get(v, 0)
227-
227+
d["weight"] = radius_dict.get(u, 0) + radius_dict.get(v, 0)
228+
228229
# compute all pairs shortest path (APSP)
229230
dist = dict(nx.all_pairs_dijkstra_path_length(B))
230231

231232
# compute and return layout using above APSP; pass through arguments
232233
return nx.kamada_kawai_layout(B, dist=dist, **kwargs)
233-

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hypernetx"
3-
version = "2.3.13"
3+
version = "2.4.0"
44
description = "HyperNetX is a Python library for the creation and study of hypergraphs."
55
authors = ["Brenda Praggastis <[email protected]>", "Dustin Arendt <[email protected]>",
66
"Sinan Aksoy <[email protected]>", "Emilie Purvine <[email protected]>",

0 commit comments

Comments
 (0)