Unconnected topology#

New in version 2.11.

#include <pagmo/topologies/unconnected.hpp>

../../../_images/unconnected.png
class unconnected#

This user-defined topology (UDT) represents an unconnected graph.

std::pair<std::vector<std::size_t>, vector_double> get_connections(std::size_t) const#

Get the list of connections.

In an unconnected topology there are no connections for any vertex.

Returns

a pair of empty vectors.

void push_back()#

Add the next vertex.

This method is a no-op.

std::string get_name() const#

Get the name of the topology.

Returns

"Unconnected".