Provides basic operations on neighborhoods in a given graph.
More...
#include <NeighborhoodUtility.h>
Provides basic operations on neighborhoods in a given graph.
std::vector< node > NetworKit::NeighborhoodUtility::getCommonNeighbors 
( 
const Graph & 
G, 


node 
u, 


node 
v 

) 
 

static 
Returns a vector containing the nodeids of all common neighbors of u and v.
 Parameters

G  Graph to obtain common neighbors from 
u  First node 
v  Second node 
 Returns
 a vector containing the nodeids of all common neighbors of u and v
std::vector< node > NetworKit::NeighborhoodUtility::getNeighborsUnion 
( 
const Graph & 
G, 


node 
u, 


node 
v 

) 
 

static 
Returns the union of the neighboorhoods of u and v.
 Parameters

G  Graph to obtain neighborsunion from 
u  First node 
v  Second node 
 Returns
 a vector containing all the nodes in the neighboorhoodunion of u and v
The documentation for this class was generated from the following files: