Skip to content

Commit

Permalink
Use index label as vertex label (instead TeX)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Feb 15, 2024
1 parent 35baf8d commit 8827b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SeQuant/core/tensor_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ TensorNetwork::Graph TensorNetwork::create_graph(
// Now add all indices (edges) to the graph
for (const Edge &current_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
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 8827b04

Please sign in to comment.