Spaces:
Runtime error
Runtime error
fix color issue
Browse files
py_code_analyzer/code_imports_analyzer.py
CHANGED
|
@@ -48,6 +48,8 @@ class CodeImportsAnalyzer:
|
|
| 48 |
|
| 49 |
def _add_edges(self, nodes):
|
| 50 |
for first_node, second_node in zip(nodes, nodes[1:]):
|
|
|
|
|
|
|
| 51 |
self.imports_graph.add_edge(first_node, second_node)
|
| 52 |
|
| 53 |
def generate_imports_graph(self):
|
|
|
|
| 48 |
|
| 49 |
def _add_edges(self, nodes):
|
| 50 |
for first_node, second_node in zip(nodes, nodes[1:]):
|
| 51 |
+
self.imports_graph.add_node(first_node, color="gray")
|
| 52 |
+
self.imports_graph.add_node(second_node, color="gray")
|
| 53 |
self.imports_graph.add_edge(first_node, second_node)
|
| 54 |
|
| 55 |
def generate_imports_graph(self):
|