summaryrefslogtreecommitdiff
path: root/networkx/algorithms/approximation/clique.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: minor coverage cleanup. (#6674)Ross Barnowski2023-05-011-3/+0
|
* Added docstrings examples for clique.py (#6576)Alimi Qudirah2023-04-251-0/+24
| | | | | | | | | | | | | | | | | | | | | | | * added docstrings examples for clique.py * Update networkx/algorithms/approximation/clique.py Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> * Update networkx/algorithms/approximation/clique.py Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> * adding corrections * adding corrections * adding corrections to examples * adding corrections --------- Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Cliques on mutigraph/directed graph types (#4502)Andrea Tomassilli2021-01-121-4/+78
| | | | | | | | | * updated functions to raise an exception for directed and multigraph * added maximum_independent_set in the clique module and and updated tests * updated docs * module docstring
* DOC: Switch from napoleon to numpydoc sphinx extension (#4447)Ross Barnowski2020-12-121-1/+1
| | | | | | | * Setup for numpydoc. * Add to doc requirements. * Replace napoleon with numpydoc in conf.py. * DOC: Fixups from numpydoc.
* Format w/ black==20.8b1Jarrod Millman2020-10-061-1/+1
|
* Format w/ blackJarrod Millman2020-07-101-2/+2
|
* Remove superfluous encoding informationJarrod Millman2019-11-111-1/+0
|
* Remove boiler plate from top of modulesJarrod Millman2019-11-111-10/+0
| | | | | | | | | The copyright and author stuff is not necessary, out-of-date, and inconsistent. It takes up visual space and is a pain to police everyone doing the same thing on the top of the module. Git handles authorship in a comprehensive and authoritative way. The LICENSE.txt file applies to all project code.
* Remove unused importsJarrod Millman2019-10-181-2/+0
|
* Update copyrightJarrod Millman2019-03-301-2/+2
|
* Fix several DeprecationWarning: invalid escape sequence (#3284)Mickaël Schoentgen2019-01-081-1/+1
| | | | | | | | * Fix several DeprecationWarning: invalid escape sequence Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr> * Restore docstring of generalized_degree()
* link DOIs to preferred resolver (#2879)Katrin Leinweber2018-02-231-1/+1
|
* Pep8 fixesJarrod Millman2018-01-201-0/+1
|
* Add a large clique size heuristic function (#2830)Dan Schult2018-01-171-8/+80
| | | | | | | | | | * Adds a large clique size heuristic function This commit creates a new package, `networkx.algorithms.heuristic`, and a new module within that package containing a function for finding the size of a large clique in a graph. * Fix typos in docs
* Fix links (#2663)Jarrod Millman2017-09-111-2/+4
| | | | | | * Fix links * Comply with pep8
* Update docsJarrod Millman2017-08-181-3/+3
|
* Next attempt to meld graphviews with base classes (#2593)Dan Schult2017-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Update code to prepare for melding graphviews * Meld graphviews into graph classes * Cleanup subgraph calling sign. and remove duplicate code * Add some tests for raising exceptions * update edge_kcomponents to avoid readonly views. * Add root_graph attribute and tests Update tests for root_graph as well as fresh_copy. I left fresh_copy as an attribute even with root_graph because a view might switch the data structure of the view from directed to undirected. Going to the root_graph.__class__ may not give you what you need to create a graph like the view. Fresh_copy gives a null graph with the directed/multi type of that view or graph.
* Allows copying a graph without attribute data.Jeffrey Finkelstein2015-12-171-1/+1
| | | | | | | | | | Adds the `with_data` keyword argument to the `Graph.copy()` method, which specifies whether the graph, node, and edge data will be included in the copy of the graph object. This commit also updates algorithms that include a call to `Graph.copy()` to use `with_data=False` if they really do not need a copy of the data.
* Find maximum clique by cardinality.Jeffrey Finkelstein2015-06-101-2/+2
| | | | | | Before, the maximum clique was chosen from a set of candidate cliques according to the subset ordering on sets. This commit changes the code to choose the maximum clique according to clique size.
* update doc strings for approximation moduleNicholas Mancuso2012-10-061-7/+7
|
* Fix latex symbols.Aric Hagberg2012-05-061-5/+5
|
* Add max clique.Aric Hagberg2012-04-151-2/+50
| | | | Addresses #714
* Add clique and ramsey.Aric Hagberg2012-04-151-0/+49
Addresses #714