Skip to content

Commit

Permalink
Merge pull request #37 from microsoft/aug-bug
Browse files Browse the repository at this point in the history
Fix call len call to get number of edges
  • Loading branch information
nicaurvi committed Mar 25, 2020
2 parents dba00c2 + 4c7359c commit fd7b227
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Release Notes
## 0.1.2
- Rename `self_loop_augmentation` to `diagonal_augmentation` and use weighted degree to perform calculation instead of degree only.
- Fix bug when getting the length of edges when performing graph augmentations.
## 0.1.1
- [Issue 29](https://github.com/microsoft/topologic/issues/29) Fixed bug in `topologic.io.from_dataset` where an empty networkx graph object (Graph, DiGraph, etc) was being treated as if no networkx Graph object were provided at all.
- Added `is_digraph` parameter to `topologic.io.from_file`. This parameter defaults to False for original behavior. Setting it to True will create a networkx DiGraph object instead.
Expand Down
2 changes: 1 addition & 1 deletion topologic/graph_augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def rank_edges(
"""
assertions.assert_is_weighted_graph(graph, weight_column)

edge_count = len(graph.edges)
edge_count = len(graph.edges())
edge_data = graph.edges(data=True)
edges = np.array(
list(
Expand Down

0 comments on commit fd7b227

Please sign in to comment.