Skip to content

Commit acbd63c

Browse files
committed
chore: format code
1 parent 628f5c6 commit acbd63c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ssspx/io.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ def _read_graphml(path: Path) -> Tuple[int, EdgeList]:
134134
max_id = -1
135135
for edge in root.findall(f".//{ns}edge"):
136136
u_str = edge.attrib.get("source", "")
137-
v_str = edge.attrib.get("target", "")
138-
137+
v_str = edge.attrib.get("target", "")
139138
# Convert string IDs to integers
140139
if u_str.startswith("n"):
141140
u = int(u_str[1:])
@@ -144,8 +143,7 @@ def _read_graphml(path: Path) -> Tuple[int, EdgeList]:
144143
if v_str.startswith("n"):
145144
v = int(v_str[1:])
146145
else:
147-
v = int(v_str)
148-
146+
v = int(v_str)
149147
w_attr = edge.attrib.get("weight")
150148
if w_attr is None:
151149
data = edge.find(f"{ns}data[@key='w']")

0 commit comments

Comments
 (0)