1#ifndef BIDIRECTIONAL_RING_TOPOLOGY_H
2#define BIDIRECTIONAL_RING_TOPOLOGY_H
29 .neighbors_out = {(node - 1 + num_nodes) % num_nodes, (node + 1) % num_nodes},
30 .neighbors_in = {(node - 1 + num_nodes) % num_nodes, (node + 1) % num_nodes}
A topology where islands are connected in a bidirectional circle.
internal::NodeLinks getLinks(const std::size_t node) const override
Returns both adjacent nodes as input and output neighbors.
BidirectionalRingTopology(const std::size_t num_nodes)
Constructs a bidirectional ring topology for num_nodes nodes.
Abstract base class for archipelago topologies.
std::size_t getNumNodes() const
Returns the total number of nodes in the topology.
Represents the incoming and outgoing links for a specific node in a graph.