This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/networkx/algorithms/approximation/tests/test_independent_set.py
2020-07-30 01:16:18 +02:00

9 lines
184 B
Python

import networkx as nx
import networkx.algorithms.approximation as a
def test_independent_set():
# smoke test
G = nx.Graph()
assert len(a.maximum_independent_set(G)) == 0