All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
NetworKit::MatchingCoarsening Class Reference

Coarsens graph according to a matching. More...

#include <MatchingCoarsening.h>

Public Member Functions

 MatchingCoarsening (const Graph &G, const Matching &M, bool noSelfLoops=false)
 
virtual void run ()
 Contracts graph according to a matching. More...
 
- Public Member Functions inherited from NetworKit::GraphCoarsening
 GraphCoarsening (const Graph &G)
 
virtual ~GraphCoarsening ()=default
 
Graph getCoarseGraph () const
 
std::vector< nodegetFineToCoarseNodeMapping () const
 Get mapping from fine to coarse node. More...
 
std::map< node, std::vector
< node > > 
getCoarseToFineNodeMapping () const
 Get mapping from coarse node to collection of fine nodes. More...
 
- Public Member Functions inherited from NetworKit::Algorithm
 Algorithm ()
 Constructor to the algorithm base class. More...
 
virtual ~Algorithm ()=default
 Virtual default destructor. More...
 
bool hasFinished () const
 Indicates whether an algorithm has completed computation or not. More...
 
void assureFinished () const
 Assure that the algorithm has been run, throws a std::runtime_error otherwise. More...
 
virtual std::string toString () const
 Returns a string with the algorithm's name and its parameters, if there are any. More...
 
virtual bool isParallel () const
 

Additional Inherited Members

- Protected Attributes inherited from NetworKit::GraphCoarsening
const GraphG
 
Graph Gcoarsened
 
std::vector< nodenodeMapping
 
- Protected Attributes inherited from NetworKit::Algorithm
bool hasRun
 A boolean variable indicating whether an algorithm has finished its computation or not. More...
 

Detailed Description

Coarsens graph according to a matching.

Constructor & Destructor Documentation

NetworKit::MatchingCoarsening::MatchingCoarsening ( const Graph G,
const Matching M,
bool  noSelfLoops = false 
)

Member Function Documentation

void NetworKit::MatchingCoarsening::run ( )
virtual

Contracts graph according to a matching.

Parameters
[in]Gfine graph
[in]Mmatching
[in]noSelfLoopsif true, self-loops are not produced
Returns
coarse graph

Implements NetworKit::GraphCoarsening.


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