Skip to content

Class NetworkData

ClassList > NetworkData

Data class for Networks. More...

  • #include <network.hpp>

Public Attributes

Type Name
bool directed = [**true**](classCell.md)
std::vector< std::vector< double > > vertex_attr

Public Functions

Type Name
NetworkData ()
NetworkData (std::vector< double > vertex_attr_, bool directed_=true)
Constructor using a single attribute.
NetworkData (std::vector< std::vector< double > > vertex_attr_, bool directed_=true)
Constructor using multiple attributes.
~NetworkData ()

Detailed Description

Details on the available counters for NetworkData can be found in the Network counters section.

This holds information about whether the graph is directed or not, and, if defined, vectors of node (vertex) attributes (vertex_attr).

Public Attributes Documentation

variable directed

bool NetworkData::directed;

variable vertex_attr

std::vector< std::vector< double > > NetworkData::vertex_attr;

Public Functions Documentation

function NetworkData [1/3]

inline NetworkData::NetworkData () 

function NetworkData [2/3]

Constructor using a single attribute.

inline NetworkData::NetworkData (
    std::vector < double > vertex_attr_,
    bool directed_=true
) 

Parameters:

  • vertex_attr_ Double vector of length equal to the number of vertices in the data.
  • directed_ When true the graph as treated as directed.

function NetworkData [3/3]

Constructor using multiple attributes.

inline NetworkData::NetworkData (
    std::vector < std::vector < double > > vertex_attr_,
    bool directed_=true
) 

Parameters:

  • vertex_attr_ Vector of double vectors. The size equals to the number of attributes to be created. Each individual vector should be of length equal to the number of vertices.
  • directed_ When true the graph as treated as directed.

function ~NetworkData

inline NetworkData::~NetworkData () 


The documentation for this class was generated from the following file include/barry/counters/network.hpp