My Project
|
Main CIS implementation. More...
Functions | |
std::pair< std::vector< seed > *, double > | expand_seed (seed S) |
Adds neighbors of seed to increase density. |
Main CIS implementation.
std::pair< std::vector< seed > *, double > expand_seed | ( | seed | S | ) |
Adds neighbors of seed to increase density.
The pair returned is a vector of all disjoint subgraphs within a modified seed S (one step of addition and removal) and a number representing how closely connected the modified seed is.
NOTE: seed S doesn't actually change as it is passed by value.
S | Set of vertices to expand |
Explicitly copy S so we can change S without changing anything in the caller.
S | Set of vertices to expand |