Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Utopia::Models::Opinionet::Revision::TestNetworkU Struct Reference

Public Types

using vertex = boost::graph_traits< NetworkUndirected >::vertex_descriptor
 

Public Member Functions

 TestNetworkU ()
 

Public Attributes

NetworkUndirected nw
 
vertex v1 = boost::add_vertex(nw)
 
vertex v2 = boost::add_vertex(nw)
 
vertex v3 = boost::add_vertex(nw)
 
vertex v4 = boost::add_vertex(nw)
 
vertex v5 = boost::add_vertex(nw)
 
vertex v6 = boost::add_vertex(nw)
 

Member Typedef Documentation

◆ vertex

Constructor & Destructor Documentation

◆ TestNetworkU()

Utopia::Models::Opinionet::Revision::TestNetworkU::TestNetworkU ( )
inline
60 {
61 boost::add_edge(v1, v2, nw);
62 boost::add_edge(v1, v3, nw);
63 boost::add_edge(v1, v4, nw);
64 boost::add_edge(v1, v6, nw);
65 int i = 0;
66 for (const auto v : range<IterateOver::vertices>(nw)) {
67 nw[v].opinion = i;
68 ++i;
69 }
70 }
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213
IterateOver
Over which graph entity to iterate.
Definition iterator.hh:19
decltype(auto) range(const Graph &g)
Get the iterator range over selected graph entities.
Definition iterator.hh:149
@ vertices
Iterate over vertices.
vertex v3
Definition test_revision.cc:55
vertex v1
Definition test_revision.cc:53
vertex v4
Definition test_revision.cc:56
vertex v2
Definition test_revision.cc:54
vertex v6
Definition test_revision.cc:58
NetworkUndirected nw
Definition test_revision.cc:52

Member Data Documentation

◆ nw

NetworkUndirected Utopia::Models::Opinionet::Revision::TestNetworkU::nw

◆ v1

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v1 = boost::add_vertex(nw)

◆ v2

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v2 = boost::add_vertex(nw)

◆ v3

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v3 = boost::add_vertex(nw)

◆ v4

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v4 = boost::add_vertex(nw)

◆ v5

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v5 = boost::add_vertex(nw)

◆ v6

vertex Utopia::Models::Opinionet::Revision::TestNetworkU::v6 = boost::add_vertex(nw)

The documentation for this struct was generated from the following file: