From a316a41946a7b1234373a39df8262d3e6efecec6 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Fri, 9 Feb 2024 16:15:13 +0100 Subject: [PATCH] Use index label as vertex label (instead TeX) --- SeQuant/core/tensor_network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SeQuant/core/tensor_network.cpp b/SeQuant/core/tensor_network.cpp index 340a3bdb3..8516e0ed3 100644 --- a/SeQuant/core/tensor_network.cpp +++ b/SeQuant/core/tensor_network.cpp @@ -771,7 +771,7 @@ TensorNetwork::Graph TensorNetwork::create_graph( // Now add all indices (edges) to the graph for (const Edge ¤t_edge : edges_) { const Index &index = current_edge.idx(); - graph.vertex_labels.push_back(index.to_latex()); + graph.vertex_labels.push_back(std::wstring(index.label())); graph.vertex_types.push_back(VertexType::Index); // Assign index color @@ -803,7 +803,7 @@ TensorNetwork::Graph TensorNetwork::create_graph( // Create a new vertex for this bundle of proto indices std::wstring spbundle_label = L"{"; for (const Index &proto : index.proto_indices()) { - spbundle_label += proto.to_latex(); + spbundle_label += proto.label(); } spbundle_label += L"}"; graph.vertex_labels.push_back(std::move(spbundle_label));