In a QA attempt I tried to find calling sort() in graphs without
|key|, which may raise exception.

On sage 9.6:

$cd /usr/lib64/python3.11/site-packages/sage/graphs/
$grep -rnI 'sort(' . | grep -v 'key=' | grep -v 'topological'

#15 results


./base/static_sparse_backend.pyx:512:            vertices.sort()
./base/static_sparse_graph.pxd:10:    void qsort(void *base, int
nmemb, int size,
./base/static_sparse_graph.pyx:293:            qsort(g.neighbors[i],
g.neighbors[i+1] - g.neighbors[i], sizeof(int), compare_uint32_p)
./graph_decompositions/vertex_separation.pyx:1841:    delta.sort()
./connectivity.pyx:287:        c.sort()
./generic_graph.py:3413:            multi_edges.sort()
./generic_graph.py:12124:            output.sort()
./generic_graph.py:21508:            sage: lap.sort(reverse=True)
./generic_graph.py:21521:        evals.sort(reverse=True)
./graph.py:2715:        e.sort()
./graph_database.py:75:    degree_sequence.sort()
./schnyder.py:278:            l.sort()
./schnyder.py:427:        ones.sort()
./schnyder.py:428:        twos.sort()
./schnyder.py:429:        threes.sort()

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAGUWgD-Fuj8068D4ELhUh9w9ozNU2Qcgy1bKh7piyt8SEEw1Wg%40mail.gmail.com.

Reply via email to