1#ifndef ONE_WAY_RING_TOPOLOGY_H
2#define ONE_WAY_RING_TOPOLOGY_H
29 .neighbors_out = {(node + 1) % num_nodes},
30 .neighbors_in = {(node - 1 + num_nodes) % num_nodes}
A topology where islands are connected in a unidirectional circle.
internal::NodeLinks getLinks(const std::size_t node) const override
Returns the next node as output and previous node as input.
OneWayRingTopology(const std::size_t num_nodes)
Constructs a unidirectional 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.