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 f8fd1a9 commit c477978Copy full SHA for c477978
cdlib/utils.py
@@ -132,8 +132,9 @@ def __from_nx_to_igraph(g: object, directed: bool = None) -> object:
132
gi.add_edges([("\\" + str(u), "\\" + str(v)) for (u, v) in g.edges()])
133
134
if bipartite.is_bipartite(g) and not skip_bipartite:
135
+ convert = {str(x):x for x in g.nodes()}
136
gi.vs["type"] = [
- a_r[name] if type(name) == int else a_r[int(name.replace("\\", ""))]
137
+ a_r[name] if type(name) == int else a_r[convert[name.replace("\\", "")]]
138
for name in gi.vs["name"]
139
]
140
0 commit comments