File: unconnected.rst

package info (click to toggle)
pagmo 2.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 85,228 kB
  • sloc: cpp: 1,753,592; makefile: 223; sh: 121; python: 46
file content (36 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
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::