Function NetworKit::RandomLinkSampler::byCount

Function Documentation

Graph NetworKit::RandomLinkSampler::byCount(const Graph &G, count numLinks)

Returns a graph that contains numLinks links from the given graph G. The links are randomly selected from G until the given count is reached.

Parameters:
  • G – The graph to construct the training graph from

  • numLinks – Number of links the returned graph should consist of

Returns:

a graph that contains the given number of links from G