Skip to content

Commit 5b6a152

Browse files
committed
[FIX] Naming of nodes in generator (#85, #90)
1 parent 27c8c58 commit 5b6a152

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cdt/data/acyclic_graph_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def generate(self, rescale=True):
173173
if rescale:
174174
self.data['V{}'.format(i)] = scale(self.data['V{}'.format(i)].values)
175175

176-
return self.data, self.g
176+
return self.data, nx.relabel_nodes(self.g, {i:'V'+str(i) for i in self.g.nodes}, copy=True)
177177

178178
def to_csv(self, fname_radical, **kwargs):
179179
"""

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scikit-learn>=0.21.1
44
joblib>=0.13.2
55
pandas>=0.24.1
66
networkx>=2.3
7-
torch==1.4.0
7+
torch
88
tqdm>4.0.0
99
GPUtil>=1.4.0
1010
statsmodels>=0.9.0

0 commit comments

Comments
 (0)