We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628f5c6 commit acbd63cCopy full SHA for acbd63c
src/ssspx/io.py
@@ -134,8 +134,7 @@ def _read_graphml(path: Path) -> Tuple[int, EdgeList]:
134
max_id = -1
135
for edge in root.findall(f".//{ns}edge"):
136
u_str = edge.attrib.get("source", "")
137
- v_str = edge.attrib.get("target", "")
138
-
+ v_str = edge.attrib.get("target", "")
139
# Convert string IDs to integers
140
if u_str.startswith("n"):
141
u = int(u_str[1:])
@@ -144,8 +143,7 @@ def _read_graphml(path: Path) -> Tuple[int, EdgeList]:
144
143
if v_str.startswith("n"):
145
v = int(v_str[1:])
146
else:
147
- v = int(v_str)
148
+ v = int(v_str)
149
w_attr = edge.attrib.get("weight")
150
if w_attr is None:
151
data = edge.find(f"{ns}data[@key='w']")
0 commit comments