Returns an approximate maximum independent set.
Independent set or stable set is a set of vertices in a graph, no two of which are adjacent. That is, it is a set I of vertices such that for every two vertices in I, there is no edge connecting the two. Equivalently, each edge in the graph has at most one endpoint in I. The size of an independent set is the number of vertices it contains .
A maximum independent set is a largest independent set for a given graph G and its size is denoted \(\alpha(G)\). The problem of finding such a set is called the maximum independent set problem and is an NP-hard optimization problem. As such, it is unlikely that there exists an efficient algorithm for finding a maximum independent set of a graph.
The Independent Set algorithm is based on .
- GNetworkX graph
The apx-maximum independent set
If the graph is directed or is a multigraph.
Finds the \(O(|V|/(log|V|)^2)\) apx of independent set in the worst case.