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.
- {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/METADATA +126 -30
- passagemath_graphs-10.5.43.dist-info/RECORD +256 -0
- {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/WHEEL +2 -1
- passagemath_graphs.dylibs/libgmp.10.dylib +0 -0
- sage/all__sagemath_graphs.py +5 -0
- sage/combinat/abstract_tree.py +1 -1
- sage/combinat/binary_tree.py +1 -1
- sage/combinat/cluster_algebra_quiver/all.py +1 -1
- sage/combinat/cluster_algebra_quiver/cluster_seed.py +28 -24
- sage/combinat/cluster_algebra_quiver/interact.py +4 -0
- sage/combinat/designs/MOLS_handbook_data.py +5 -5
- sage/combinat/designs/bibd.py +10 -9
- sage/combinat/designs/covering_array.py +3 -3
- sage/combinat/designs/covering_design.py +2 -1
- sage/combinat/designs/database.py +11 -10
- sage/combinat/designs/designs_pyx.cpython-39-darwin.so +0 -0
- sage/combinat/designs/designs_pyx.pyx +13 -45
- sage/combinat/designs/difference_family.py +6 -6
- sage/combinat/designs/difference_matrices.py +1 -1
- sage/combinat/designs/evenly_distributed_sets.cpython-39-darwin.so +0 -0
- sage/combinat/designs/evenly_distributed_sets.pyx +15 -22
- sage/combinat/designs/ext_rep.py +9 -14
- sage/combinat/designs/gen_quadrangles_with_spread.cpython-39-darwin.so +0 -0
- sage/combinat/designs/gen_quadrangles_with_spread.pyx +1 -1
- sage/combinat/designs/group_divisible_designs.py +1 -1
- sage/combinat/designs/incidence_structures.py +8 -8
- sage/combinat/designs/latin_squares.py +1 -1
- sage/combinat/designs/orthogonal_arrays_build_recursive.py +8 -7
- sage/combinat/designs/orthogonal_arrays_find_recursive.cpython-39-darwin.so +0 -0
- sage/combinat/designs/resolvable_bibd.py +1 -1
- sage/combinat/designs/steiner_quadruple_systems.py +1 -1
- sage/combinat/designs/subhypergraph_search.cpython-39-darwin.so +0 -0
- sage/combinat/designs/subhypergraph_search.pyx +9 -9
- sage/combinat/finite_state_machine_generators.py +2 -2
- sage/combinat/graph_path.py +3 -3
- sage/combinat/interval_posets.py +10 -10
- sage/combinat/ordered_tree.py +1 -1
- sage/combinat/posets/cartesian_product.py +1 -1
- sage/combinat/posets/d_complete.py +1 -1
- sage/combinat/posets/forest.py +1 -1
- sage/combinat/posets/hasse_cython.cpython-39-darwin.so +0 -0
- sage/combinat/posets/hasse_diagram.py +8 -6
- sage/combinat/posets/incidence_algebras.py +8 -8
- sage/combinat/posets/lattices.py +28 -4
- sage/combinat/posets/linear_extension_iterator.cpython-39-darwin.so +0 -0
- sage/combinat/posets/linear_extension_iterator.pyx +2 -0
- sage/combinat/posets/linear_extensions.py +7 -16
- sage/combinat/posets/moebius_algebra.py +1 -1
- sage/combinat/posets/poset_examples.py +1 -1
- sage/combinat/posets/posets.py +54 -56
- sage/combinat/rooted_tree.py +3 -3
- sage/combinat/tamari_lattices.py +1 -1
- sage/ext_data/kenzo/CP2.txt +45 -0
- sage/ext_data/kenzo/CP3.txt +349 -0
- sage/ext_data/kenzo/CP4.txt +4774 -0
- sage/ext_data/kenzo/README.txt +49 -0
- sage/ext_data/kenzo/S4.txt +20 -0
- sage/graphs/asteroidal_triples.cpython-39-darwin.so +0 -0
- sage/graphs/base/boost_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/boost_graph.pxd +1 -1
- sage/graphs/base/boost_graph.pyx +1 -1
- sage/graphs/base/c_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/c_graph.pxd +4 -4
- sage/graphs/base/c_graph.pyx +270 -184
- sage/graphs/base/dense_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/graph_backends.cpython-39-darwin.so +0 -0
- sage/graphs/base/sparse_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/static_dense_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/static_sparse_backend.cpython-39-darwin.so +0 -0
- sage/graphs/base/static_sparse_backend.pyx +93 -6
- sage/graphs/base/static_sparse_graph.cpython-39-darwin.so +0 -0
- sage/graphs/base/static_sparse_graph.pyx +1 -1
- sage/graphs/bipartite_graph.py +0 -1
- sage/graphs/centrality.cpython-39-darwin.so +0 -0
- sage/graphs/centrality.pyx +0 -0
- sage/graphs/comparability.cpython-39-darwin.so +0 -0
- sage/graphs/comparability.pyx +172 -138
- sage/graphs/connectivity.cpython-39-darwin.so +0 -0
- sage/graphs/connectivity.pyx +194 -18
- sage/graphs/convexity_properties.cpython-39-darwin.so +0 -0
- sage/graphs/digraph_generators.py +118 -74
- sage/graphs/distances_all_pairs.cpython-39-darwin.so +0 -0
- sage/graphs/distances_all_pairs.pyx +145 -27
- sage/graphs/edge_connectivity.cpython-39-darwin.so +0 -0
- sage/graphs/generators/basic.py +471 -130
- sage/graphs/generators/distance_regular.cpython-39-darwin.so +0 -0
- sage/graphs/generators/distance_regular.pyx +12 -12
- sage/graphs/generators/families.py +2 -2
- sage/graphs/generators/random.py +8 -13
- sage/graphs/generators/smallgraphs.py +12 -11
- sage/graphs/generic_graph.py +687 -265
- sage/graphs/generic_graph_pyx.cpython-39-darwin.so +0 -0
- sage/graphs/genus.cpython-39-darwin.so +0 -0
- sage/graphs/graph.py +12 -46
- sage/graphs/graph_coloring.cpython-39-darwin.so +0 -0
- sage/graphs/graph_database.py +1 -1
- sage/graphs/graph_decompositions/bandwidth.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/clique_separators.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/cutwidth.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/fast_digraph.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/graph_products.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/modular_decomposition.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/slice_decomposition.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/tree_decomposition.cpython-39-darwin.so +0 -0
- sage/graphs/graph_decompositions/vertex_separation.cpython-39-darwin.so +0 -0
- sage/graphs/graph_generators.py +110 -55
- sage/graphs/graph_generators_pyx.cpython-39-darwin.so +0 -0
- sage/graphs/graph_latex.py +1 -1
- sage/graphs/graph_list.py +2 -3
- sage/graphs/graph_plot.py +225 -30
- sage/graphs/hyperbolicity.cpython-39-darwin.so +0 -0
- sage/graphs/independent_sets.cpython-39-darwin.so +0 -0
- sage/graphs/isgci.py +3 -8
- sage/graphs/isoperimetric_inequalities.cpython-39-darwin.so +0 -0
- sage/graphs/line_graph.cpython-39-darwin.so +0 -0
- sage/graphs/matching.py +14 -25
- sage/graphs/matching_covered_graph.py +871 -60
- sage/graphs/orientations.py +190 -134
- sage/graphs/path_enumeration.cpython-39-darwin.so +0 -0
- sage/graphs/path_enumeration.pyx +25 -25
- sage/graphs/spanning_tree.cpython-39-darwin.so +0 -0
- sage/graphs/strongly_regular_db.cpython-39-darwin.so +0 -0
- sage/graphs/strongly_regular_db.pyx +54 -52
- sage/graphs/traversals.cpython-39-darwin.so +0 -0
- sage/graphs/traversals.pyx +114 -46
- sage/graphs/trees.cpython-39-darwin.so +0 -0
- sage/graphs/views.cpython-39-darwin.so +0 -0
- sage/graphs/weakly_chordal.cpython-39-darwin.so +0 -0
- sage/groups/perm_gps/partn_ref/refinement_graphs.cpython-39-darwin.so +0 -0
- sage/knots/free_knotinfo_monoid.py +2 -3
- sage/knots/knot.py +1 -1
- sage/knots/knotinfo.py +4 -4
- sage/knots/link.py +58 -57
- sage/sandpiles/sandpile.py +2 -3
- sage/topology/cell_complex.py +1 -1
- sage/topology/cubical_complex.py +7 -7
- sage/topology/delta_complex.py +4 -4
- sage/topology/simplicial_complex.py +7 -22
- passagemath_graphs-10.5.10.dist-info/RECORD +0 -251
- {passagemath_graphs-10.5.10.dist-info → passagemath_graphs-10.5.43.dist-info}/top_level.txt +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|
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())
|
Binary file
|
@@ -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
|
sage/graphs/bipartite_graph.py
CHANGED
Binary file
|
sage/graphs/centrality.pyx
CHANGED
File without changes
|
Binary file
|