Struct TensorNetworkV3::Graph

Nested Relationships

This struct is a nested type of Class TensorNetworkV3.

Struct Documentation

struct Graph

Public Types

using VertexColor = std::uint32_t

The type used to encode the color of a vertex. The restriction of this being as 32-bit integer comes from how BLISS is trying to convert these into RGB values.

Public Functions

Graph() = default
std::size_t vertex_to_index_idx(std::size_t vertex) const
std::optional<std::size_t> vertex_to_tensor_idx(std::size_t vertex) const

maps vertex ordinal to tensor cluster ordinal

Note

usable as bliss::Graph::DotOptions::vertex_to_subgraph

Public Members

std::unique_ptr<bliss::Graph> bliss_graph
std::vector<std::wstring> vertex_labels
std::vector<std::optional<std::wstring>> vertex_xlabels
std::vector<std::optional<std::wstring>> vertex_texlabels
std::vector<VertexColor> vertex_colors
std::vector<VertexType> vertex_types
container::map<Index, std::size_t> idx_to_vertex