passagemath-graphs 10.5.10__cp39-cp39-macosx_14_0_arm64.whl → 10.5.43__cp39-cp39-macosx_14_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/METADATA +126 -30
  2. passagemath_graphs-10.5.43.dist-info/RECORD +256 -0
  3. {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/WHEEL +2 -1
  4. passagemath_graphs.dylibs/libgmp.10.dylib +0 -0
  5. sage/all__sagemath_graphs.py +5 -0
  6. sage/combinat/abstract_tree.py +1 -1
  7. sage/combinat/binary_tree.py +1 -1
  8. sage/combinat/cluster_algebra_quiver/all.py +1 -1
  9. sage/combinat/cluster_algebra_quiver/cluster_seed.py +28 -24
  10. sage/combinat/cluster_algebra_quiver/interact.py +4 -0
  11. sage/combinat/designs/MOLS_handbook_data.py +5 -5
  12. sage/combinat/designs/bibd.py +10 -9
  13. sage/combinat/designs/covering_array.py +3 -3
  14. sage/combinat/designs/covering_design.py +2 -1
  15. sage/combinat/designs/database.py +11 -10
  16. sage/combinat/designs/designs_pyx.cpython-39-darwin.so +0 -0
  17. sage/combinat/designs/designs_pyx.pyx +13 -45
  18. sage/combinat/designs/difference_family.py +6 -6
  19. sage/combinat/designs/difference_matrices.py +1 -1
  20. sage/combinat/designs/evenly_distributed_sets.cpython-39-darwin.so +0 -0
  21. sage/combinat/designs/evenly_distributed_sets.pyx +15 -22
  22. sage/combinat/designs/ext_rep.py +9 -14
  23. sage/combinat/designs/gen_quadrangles_with_spread.cpython-39-darwin.so +0 -0
  24. sage/combinat/designs/gen_quadrangles_with_spread.pyx +1 -1
  25. sage/combinat/designs/group_divisible_designs.py +1 -1
  26. sage/combinat/designs/incidence_structures.py +8 -8
  27. sage/combinat/designs/latin_squares.py +1 -1
  28. sage/combinat/designs/orthogonal_arrays_build_recursive.py +8 -7
  29. sage/combinat/designs/orthogonal_arrays_find_recursive.cpython-39-darwin.so +0 -0
  30. sage/combinat/designs/resolvable_bibd.py +1 -1
  31. sage/combinat/designs/steiner_quadruple_systems.py +1 -1
  32. sage/combinat/designs/subhypergraph_search.cpython-39-darwin.so +0 -0
  33. sage/combinat/designs/subhypergraph_search.pyx +9 -9
  34. sage/combinat/finite_state_machine_generators.py +2 -2
  35. sage/combinat/graph_path.py +3 -3
  36. sage/combinat/interval_posets.py +10 -10
  37. sage/combinat/ordered_tree.py +1 -1
  38. sage/combinat/posets/cartesian_product.py +1 -1
  39. sage/combinat/posets/d_complete.py +1 -1
  40. sage/combinat/posets/forest.py +1 -1
  41. sage/combinat/posets/hasse_cython.cpython-39-darwin.so +0 -0
  42. sage/combinat/posets/hasse_diagram.py +8 -6
  43. sage/combinat/posets/incidence_algebras.py +8 -8
  44. sage/combinat/posets/lattices.py +28 -4
  45. sage/combinat/posets/linear_extension_iterator.cpython-39-darwin.so +0 -0
  46. sage/combinat/posets/linear_extension_iterator.pyx +2 -0
  47. sage/combinat/posets/linear_extensions.py +7 -16
  48. sage/combinat/posets/moebius_algebra.py +1 -1
  49. sage/combinat/posets/poset_examples.py +1 -1
  50. sage/combinat/posets/posets.py +54 -56
  51. sage/combinat/rooted_tree.py +3 -3
  52. sage/combinat/tamari_lattices.py +1 -1
  53. sage/ext_data/kenzo/CP2.txt +45 -0
  54. sage/ext_data/kenzo/CP3.txt +349 -0
  55. sage/ext_data/kenzo/CP4.txt +4774 -0
  56. sage/ext_data/kenzo/README.txt +49 -0
  57. sage/ext_data/kenzo/S4.txt +20 -0
  58. sage/graphs/asteroidal_triples.cpython-39-darwin.so +0 -0
  59. sage/graphs/base/boost_graph.cpython-39-darwin.so +0 -0
  60. sage/graphs/base/boost_graph.pxd +1 -1
  61. sage/graphs/base/boost_graph.pyx +1 -1
  62. sage/graphs/base/c_graph.cpython-39-darwin.so +0 -0
  63. sage/graphs/base/c_graph.pxd +4 -4
  64. sage/graphs/base/c_graph.pyx +270 -184
  65. sage/graphs/base/dense_graph.cpython-39-darwin.so +0 -0
  66. sage/graphs/base/graph_backends.cpython-39-darwin.so +0 -0
  67. sage/graphs/base/sparse_graph.cpython-39-darwin.so +0 -0
  68. sage/graphs/base/static_dense_graph.cpython-39-darwin.so +0 -0
  69. sage/graphs/base/static_sparse_backend.cpython-39-darwin.so +0 -0
  70. sage/graphs/base/static_sparse_backend.pyx +93 -6
  71. sage/graphs/base/static_sparse_graph.cpython-39-darwin.so +0 -0
  72. sage/graphs/base/static_sparse_graph.pyx +1 -1
  73. sage/graphs/bipartite_graph.py +0 -1
  74. sage/graphs/centrality.cpython-39-darwin.so +0 -0
  75. sage/graphs/centrality.pyx +0 -0
  76. sage/graphs/comparability.cpython-39-darwin.so +0 -0
  77. sage/graphs/comparability.pyx +172 -138
  78. sage/graphs/connectivity.cpython-39-darwin.so +0 -0
  79. sage/graphs/connectivity.pyx +194 -18
  80. sage/graphs/convexity_properties.cpython-39-darwin.so +0 -0
  81. sage/graphs/digraph_generators.py +118 -74
  82. sage/graphs/distances_all_pairs.cpython-39-darwin.so +0 -0
  83. sage/graphs/distances_all_pairs.pyx +145 -27
  84. sage/graphs/edge_connectivity.cpython-39-darwin.so +0 -0
  85. sage/graphs/generators/basic.py +471 -130
  86. sage/graphs/generators/distance_regular.cpython-39-darwin.so +0 -0
  87. sage/graphs/generators/distance_regular.pyx +12 -12
  88. sage/graphs/generators/families.py +2 -2
  89. sage/graphs/generators/random.py +8 -13
  90. sage/graphs/generators/smallgraphs.py +12 -11
  91. sage/graphs/generic_graph.py +687 -265
  92. sage/graphs/generic_graph_pyx.cpython-39-darwin.so +0 -0
  93. sage/graphs/genus.cpython-39-darwin.so +0 -0
  94. sage/graphs/graph.py +12 -46
  95. sage/graphs/graph_coloring.cpython-39-darwin.so +0 -0
  96. sage/graphs/graph_database.py +1 -1
  97. sage/graphs/graph_decompositions/bandwidth.cpython-39-darwin.so +0 -0
  98. sage/graphs/graph_decompositions/clique_separators.cpython-39-darwin.so +0 -0
  99. sage/graphs/graph_decompositions/cutwidth.cpython-39-darwin.so +0 -0
  100. sage/graphs/graph_decompositions/fast_digraph.cpython-39-darwin.so +0 -0
  101. sage/graphs/graph_decompositions/graph_products.cpython-39-darwin.so +0 -0
  102. sage/graphs/graph_decompositions/modular_decomposition.cpython-39-darwin.so +0 -0
  103. sage/graphs/graph_decompositions/slice_decomposition.cpython-39-darwin.so +0 -0
  104. sage/graphs/graph_decompositions/tree_decomposition.cpython-39-darwin.so +0 -0
  105. sage/graphs/graph_decompositions/vertex_separation.cpython-39-darwin.so +0 -0
  106. sage/graphs/graph_generators.py +110 -55
  107. sage/graphs/graph_generators_pyx.cpython-39-darwin.so +0 -0
  108. sage/graphs/graph_latex.py +1 -1
  109. sage/graphs/graph_list.py +2 -3
  110. sage/graphs/graph_plot.py +225 -30
  111. sage/graphs/hyperbolicity.cpython-39-darwin.so +0 -0
  112. sage/graphs/independent_sets.cpython-39-darwin.so +0 -0
  113. sage/graphs/isgci.py +3 -8
  114. sage/graphs/isoperimetric_inequalities.cpython-39-darwin.so +0 -0
  115. sage/graphs/line_graph.cpython-39-darwin.so +0 -0
  116. sage/graphs/matching.py +14 -25
  117. sage/graphs/matching_covered_graph.py +871 -60
  118. sage/graphs/orientations.py +190 -134
  119. sage/graphs/path_enumeration.cpython-39-darwin.so +0 -0
  120. sage/graphs/path_enumeration.pyx +25 -25
  121. sage/graphs/spanning_tree.cpython-39-darwin.so +0 -0
  122. sage/graphs/strongly_regular_db.cpython-39-darwin.so +0 -0
  123. sage/graphs/strongly_regular_db.pyx +54 -52
  124. sage/graphs/traversals.cpython-39-darwin.so +0 -0
  125. sage/graphs/traversals.pyx +114 -46
  126. sage/graphs/trees.cpython-39-darwin.so +0 -0
  127. sage/graphs/views.cpython-39-darwin.so +0 -0
  128. sage/graphs/weakly_chordal.cpython-39-darwin.so +0 -0
  129. sage/groups/perm_gps/partn_ref/refinement_graphs.cpython-39-darwin.so +0 -0
  130. sage/knots/free_knotinfo_monoid.py +2 -3
  131. sage/knots/knot.py +1 -1
  132. sage/knots/knotinfo.py +4 -4
  133. sage/knots/link.py +58 -57
  134. sage/sandpiles/sandpile.py +2 -3
  135. sage/topology/cell_complex.py +1 -1
  136. sage/topology/cubical_complex.py +7 -7
  137. sage/topology/delta_complex.py +4 -4
  138. sage/topology/simplicial_complex.py +7 -22
  139. passagemath_graphs-10.5.10.dist-info/RECORD +0 -251
  140. {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/top_level.txt +0 -0
@@ -558,9 +558,28 @@ cdef class StaticSparseBackend(CGraphBackend):
558
558
  """
559
559
  return v in self._vertex_to_int
560
560
 
561
+ def add_vertex(self, object v):
562
+ r"""
563
+ Add a vertex to the graph. No way
564
+
565
+ INPUT:
566
+
567
+ - ``v`` -- a vertex (or not?)
568
+
569
+ TESTS::
570
+
571
+ sage: from sage.graphs.base.static_sparse_backend import StaticSparseBackend
572
+ sage: g = StaticSparseBackend(graphs.PetersenGraph())
573
+ sage: g.add_vertex(123)
574
+ Traceback (most recent call last):
575
+ ...
576
+ ValueError: graph is immutable; please change a copy instead (use function copy())
577
+ """
578
+ raise ValueError("graph is immutable; please change a copy instead (use function copy())")
579
+
561
580
  cpdef add_edge(self, object u, object v, object l, bint directed):
562
581
  r"""
563
- Set edge label. No way.
582
+ Add an edge to the graph. No way.
564
583
 
565
584
  TESTS::
566
585
 
@@ -573,9 +592,13 @@ cdef class StaticSparseBackend(CGraphBackend):
573
592
  """
574
593
  raise ValueError("graph is immutable; please change a copy instead (use function copy())")
575
594
 
576
- def add_edges(self, edges, directed):
595
+ def add_edges(self, edges, directed, remove_loops=False):
577
596
  r"""
578
- Set edge label. No way.
597
+ Add edges to the graph. No way.
598
+
599
+ INPUT:
600
+
601
+ - ``edges`` -- a list of edges (or not?)
579
602
 
580
603
  TESTS::
581
604
 
@@ -590,7 +613,11 @@ cdef class StaticSparseBackend(CGraphBackend):
590
613
 
591
614
  def add_vertices(self, vertices):
592
615
  r"""
593
- Set edge label. No way.
616
+ Add vertices to the graph. No way.
617
+
618
+ INPUT:
619
+
620
+ - ``vertices`` -- a list of vertices (or not?)
594
621
 
595
622
  TESTS::
596
623
 
@@ -603,15 +630,75 @@ cdef class StaticSparseBackend(CGraphBackend):
603
630
  """
604
631
  raise ValueError("graph is immutable; please change a copy instead (use function copy())")
605
632
 
633
+ def del_vertex(self, object v):
634
+ r"""
635
+ Delete a vertex from the graph. No way
636
+
637
+ INPUT:
638
+
639
+ - ``v`` -- a vertex (or not?)
640
+
641
+ TESTS::
642
+
643
+ sage: from sage.graphs.base.static_sparse_backend import StaticSparseBackend
644
+ sage: g = StaticSparseBackend(graphs.PetersenGraph())
645
+ sage: g.del_vertex(123)
646
+ Traceback (most recent call last):
647
+ ...
648
+ ValueError: graph is immutable; please change a copy instead (use function copy())
649
+
650
+ Check that :issue:`39270` is fixed::
651
+
652
+ sage: g.del_vertex('a')
653
+ Traceback (most recent call last):
654
+ ...
655
+ ValueError: graph is immutable; please change a copy instead (use function copy())
656
+ """
657
+ raise ValueError("graph is immutable; please change a copy instead (use function copy())")
658
+
659
+ def del_vertices(self, vertices):
660
+ r"""
661
+ Delete vertices from the graph. No way
662
+
663
+ INPUT:
664
+
665
+ - ``vertices`` -- a list of vertices (or not?)
666
+
667
+ TESTS::
668
+
669
+ sage: from sage.graphs.base.static_sparse_backend import StaticSparseBackend
670
+ sage: g = StaticSparseBackend(graphs.PetersenGraph())
671
+ sage: g.del_vertices([123, 234])
672
+ Traceback (most recent call last):
673
+ ...
674
+ ValueError: graph is immutable; please change a copy instead (use function copy())
675
+ """
676
+ raise ValueError("graph is immutable; please change a copy instead (use function copy())")
677
+
606
678
  cpdef del_edge(self, object u, object v, object l, bint directed):
607
679
  r"""
608
- Set edge label. No way.
680
+ Delete an edge of the graph. No way.
609
681
 
610
682
  TESTS::
611
683
 
612
684
  sage: from sage.graphs.base.static_sparse_backend import StaticSparseBackend
613
685
  sage: g = StaticSparseBackend(graphs.PetersenGraph())
614
- sage: g.set_edge_label(1,2,3,True)
686
+ sage: g.del_edge(1,2,3,True)
687
+ Traceback (most recent call last):
688
+ ...
689
+ ValueError: graph is immutable; please change a copy instead (use function copy())
690
+ """
691
+ raise ValueError("graph is immutable; please change a copy instead (use function copy())")
692
+
693
+ def del_edges(self, edges, directed):
694
+ r"""
695
+ Delete edges of the graph. No way.
696
+
697
+ TESTS::
698
+
699
+ sage: from sage.graphs.base.static_sparse_backend import StaticSparseBackend
700
+ sage: g = StaticSparseBackend(graphs.PetersenGraph())
701
+ sage: g.del_edges([[1,2,3]], True)
615
702
  Traceback (most recent call last):
616
703
  ...
617
704
  ValueError: graph is immutable; please change a copy instead (use function copy())
@@ -329,7 +329,7 @@ cdef int init_short_digraph(short_digraph g, G, edge_labelled=False,
329
329
  g.neighbors[j][0] = i
330
330
  # Note: cannot use the dereference Cython operator here, do not
331
331
  # known why but the following line does not compile
332
- #dereference(g.neighbors[j]) = i
332
+ # dereference(g.neighbors[j]) = i
333
333
  if edge_labelled:
334
334
  edge_labels[g.neighbors[j] - g.edges] = e[2]
335
335
  postincrement(g.neighbors[j]) # increment pointer to next item
@@ -1071,7 +1071,6 @@ class BipartiteGraph(Graph):
1071
1071
 
1072
1072
  # add the edge
1073
1073
  Graph.add_edge(self, u, v, label)
1074
- return
1075
1074
 
1076
1075
  def add_edges(self, edges, loops=True):
1077
1076
  """
Binary file
File without changes