Struct TensorNetworkV2::Graph

Nested Relationships

This struct is a nested type of Class TensorNetworkV2.

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::size_t vertex_to_tensor_idx(std::size_t vertex) const

Public Members

std::unique_ptr<bliss::Graph> bliss_graph
std::vector<std::wstring> vertex_labels
std::vector<std::optional<std::wstring>> vertex_texlabels
std::vector<VertexColor> vertex_colors
std::vector<VertexType> vertex_types