Skip to content

Commit

Permalink
GraphWave Self Loop fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekrozemberczki committed Feb 13, 2020
1 parent 8a713c0 commit 7ebcf50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karateclub/node_embedding/structural/graphwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def fit(self, graph):
Arg types:
* **graph** *(NetworkX graph)* - The graph to be embedded.
"""
graph.remove_edges_from(nx.selfloop_edges(graph))
self._create_evaluation_points()
self._check_size(graph)
graph = graph.remove_edges_from(nx.selfloop_edges(graph))
self.G = pygsp.graphs.Graph(nx.adjacency_matrix(graph))

if self.mechanism == "exact":
Expand Down

0 comments on commit 7ebcf50

Please sign in to comment.