From 8827b04a62213ae3082027b75a46f43876ad4547 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 b456fe1a3..0235f534a 100644 --- a/SeQuant/core/tensor_network.cpp +++ b/SeQuant/core/tensor_network.cpp @@ -752,7 +752,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 @@ -784,7 +784,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));