Struct TensorNetwork::Edge

Nested Relationships

This struct is a nested type of Template Class TensorNetwork.

Struct Documentation

struct Jet::TensorNetwork::Edge

Edge is a POD which connects Nodes in a TensorNetwork.

Public Functions

inline bool operator==(const Edge &other) const noexcept

Reports whether two edges are the same.

Two edges are the same if they have the same dimension and contain the same set of node IDs.

Parameters

other – Edge to compare to this edge.

Returns

True if this edge and the given edge are the same.

Public Members

size_t dim

Dimensionality of this edge.

std::vector<NodeID_t> node_ids

IDs of the nodes connected by this edge.