diff --git a/conan/cli/formatters/graph/graph.py b/conan/cli/formatters/graph/graph.py index ea3d692d172..08711a47ac4 100644 --- a/conan/cli/formatters/graph/graph.py +++ b/conan/cli/formatters/graph/graph.py @@ -54,7 +54,8 @@ def data(self): class _Grapher(object): def __init__(self, deps_graph): self._deps_graph = deps_graph - self.nodes, self.edges = self._build_graph() + self.node_map, self.edges = self._build_graph() + self.nodes = self.node_map.values() def _build_graph(self): graph_nodes = self._deps_graph.by_levels() @@ -73,7 +74,7 @@ def _build_graph(self): dst = _node_map[node_to] edges.append((src, dst)) - return _node_map.values(), edges + return _node_map, edges @staticmethod def binary_color(node): diff --git a/conan/cli/formatters/graph/info_graph_html.py b/conan/cli/formatters/graph/info_graph_html.py index 394a7ceca2b..491750bc796 100644 --- a/conan/cli/formatters/graph/info_graph_html.py +++ b/conan/cli/formatters/graph/info_graph_html.py @@ -56,7 +56,7 @@ font: { color: "{% if highlight_node %}white{% else %}black{% endif %}" }, fulllabel: '

{{ node.label }}

' + '