graph_analysis
Public Member Functions | List of all members
graph_analysis::percolation::strategies::UniformRandomVertexRemoval Class Reference

#include <UniformRandomVertexRemoval.hpp>

Inheritance diagram for graph_analysis::percolation::strategies::UniformRandomVertexRemoval:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::percolation::strategies::UniformRandomVertexRemoval:
Collaboration graph
[legend]

Public Member Functions

 UniformRandomVertexRemoval (double occupationProbability, uint32_t seed=0)
 
EventList apply (SubGraph::Ptr subgraph)
 
std::vector< Vertex::Ptr > getDisabledVertices () const
 
- Public Member Functions inherited from graph_analysis::percolation::Strategy
virtual ~Strategy ()
 

Additional Inherited Members

- Public Types inherited from graph_analysis::percolation::Strategy
typedef shared_ptr< Strategy > Ptr
 

Constructor & Destructor Documentation

◆ UniformRandomVertexRemoval()

graph_analysis::percolation::strategies::UniformRandomVertexRemoval::UniformRandomVertexRemoval ( double  occupationProbability,
uint32_t  seed = 0 
)

Member Function Documentation

◆ apply()

EventList graph_analysis::percolation::strategies::UniformRandomVertexRemoval::apply ( SubGraph::Ptr  subgraph)
virtual

Apply strategy to given subgraph

Returns
List of change events that have been applied to the graph

Reimplemented from graph_analysis::percolation::Strategy.

◆ getDisabledVertices()

std::vector<Vertex::Ptr> graph_analysis::percolation::strategies::UniformRandomVertexRemoval::getDisabledVertices ( ) const
inline

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