1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Unconnected topology
====================
.. versionadded:: 2.11
*#include <pagmo/topologies/unconnected.hpp>*
.. image:: ../../images/unconnected.png
.. cpp:namespace-push:: pagmo
.. cpp:class:: unconnected
This user-defined topology (UDT) represents an unconnected graph.
.. cpp:function:: 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.
:return: a pair of empty vectors.
.. cpp:function:: void push_back()
Add the next vertex.
This method is a no-op.
.. cpp:function:: std::string get_name() const
Get the name of the topology.
:return: ``"Unconnected"``.
.. cpp:namespace-pop::
|