Struct TensorNetwork::GraphData¶
Defined in File tensor_network.hpp
Nested Relationships¶
This struct is a nested type of Class TensorNetwork.
Struct Documentation¶
-
struct GraphData
contains bliss::Graph representation of TN + metadata
Note
it works with structured bindings
Public Types
-
using VertexColor = unsigned int
this is the type used as color by bliss::Graph
Public Functions
-
std::optional<std::size_t> vertex_to_tensor_cluster(std::size_t vertex) const
maps vertex ordinal to tensor cluster ordinal
Note
usable as blis::Graph::DotOptions::vertex_to_subgraph
-
template<std::size_t Index>
inline auto &&get() &
-
template<std::size_t Index>
inline auto &&get() &&
-
template<std::size_t Index>
inline auto &&get() const &
-
template<std::size_t Index>
inline auto &&get() const &&
Public Members
-
std::shared_ptr<bliss::Graph> graph
bliss::Graph
-
std::vector<std::wstring> vertex_labels
vertex labels
-
std::vector<std::optional<std::wstring>> vertex_texlabels
optional vertex TeX labels usable for dot2tex
-
std::vector<VertexColor> vertex_colors
vertex colors
-
std::vector<VertexType> vertex_types
vertex types
-
using VertexColor = unsigned int