Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Apr 2, 2024
1 parent 10c259a commit 0ec7a23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hypernetx/classes/hypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def incidence_matrix(self, index=False, weights=False):
"""
e, n = self._state_dict["data"].T
if weights == True:
data = self._E.dataframe['weight']
data = self._E.dataframe["weight"]
else:
data = np.ones(len(e)).astype(int)
mat = csr_matrix((data, (n, e)))
Expand Down Expand Up @@ -1851,8 +1851,8 @@ def from_incidence_matrix(
edges = mat.col
nodes = mat.row
weights = mat.data
df = pd.DataFrame({'edges':edges,'nodes':nodes,'weights':weights})
return Hypergraph(df,cell_weight_col='weights',name=name,**kwargs)
df = pd.DataFrame({"edges": edges, "nodes": nodes, "weights": weights})
return Hypergraph(df, cell_weight_col="weights", name=name, **kwargs)

@classmethod
def from_numpy_array(
Expand Down

0 comments on commit 0ec7a23

Please sign in to comment.