rm CondaPkg environment

This commit is contained in:
ton
2023-04-06 13:53:47 +07:00
parent 0a57ed7884
commit c43d949309
3329 changed files with 5725 additions and 447022 deletions

View File

@@ -243,7 +243,7 @@ def inverse_line_graph(G):
Notes
-----
This is an implementation of the Roussopoulos algorithm.
This is an implementation of the Roussopoulos algorithm[1]_.
If G consists of multiple components, then the algorithm doesn't work.
You should invert every component separately:
@@ -259,8 +259,9 @@ def inverse_line_graph(G):
References
----------
* Roussopolous, N, "A max {m, n} algorithm for determining the graph H from
its line graph G", Information Processing Letters 2, (1973), 108--112.
.. [1] Roussopoulos, N.D. , "A max {m, n} algorithm for determining the graph H from
its line graph G", Information Processing Letters 2, (1973), 108--112, ISSN 0020-0190,
`DOI link <https://doi.org/10.1016/0020-0190(73)90029-X>`_
"""
if G.number_of_nodes() == 0:
@@ -357,10 +358,7 @@ def _odd_triangle(G, T):
for v in G[t]:
if v not in T:
T_neighbors[v] += 1
for v in T_neighbors:
if T_neighbors[v] in [1, 3]:
return True
return False
return any(T_neighbors[v] in [1, 3] for v in T_neighbors)
def _find_partition(G, starting_cell):