barry: Your go-to motif accountant  0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
NetworkData Class Reference

Data class for Networks. More...

#include <network.hpp>

Public Member Functions

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

Public Attributes

bool directed = true
 
std::vector< std::vector< double > > vertex_attr
 

Detailed Description

Data class for Networks.

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).

Definition at line 19 of file network.hpp.

Constructor & Destructor Documentation

◆ NetworkData() [1/3]

NetworkData::NetworkData ( )
inline

Definition at line 25 of file network.hpp.

◆ NetworkData() [2/3]

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

Constructor using a single attribute.

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.

Definition at line 33 of file network.hpp.

◆ NetworkData() [3/3]

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

Constructor using multiple attributes.

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.

Definition at line 45 of file network.hpp.

◆ ~NetworkData()

NetworkData::~NetworkData ( )
inline

Definition at line 51 of file network.hpp.

Member Data Documentation

◆ directed

bool NetworkData::directed = true

Definition at line 22 of file network.hpp.

◆ vertex_attr

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

Definition at line 23 of file network.hpp.


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