1#ifndef FULLY_CONNECTED_TOPOLOGY_H
2#define FULLY_CONNECTED_TOPOLOGY_H
32 for (std::size_t i = 0; i < num_nodes; ++i) {
A topology where every island is connected to every other island.
internal::NodeLinks getLinks(const std::size_t node) const override
Returns all nodes (except node) as both input and output neighbors.
FullyConnectedTopology(const std::size_t num_nodes)
Constructs a fully connected 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.
std::vector< std::size_t > neighbors_out
IDs of nodes that this node sends migrants to.
std::vector< std::size_t > neighbors_in
IDs of nodes that this node receives migrants from.