Skip to content

Commit

Permalink
Trac #26630: clean generic_graph.py (part 3)
Browse files Browse the repository at this point in the history
Done here:
- add parameter `vertices` to specify the mapping vertex to consecutive
integers to methods `_matrix_`, `incidence_matrix`,
`weighted_adjacency_matrix`. It can also be used from `kirchhoff_matrix`
- use it in `spanning_trees_count`, `lex_BFS`, `spectrum`,
`characteristic_polynomial`, `eigenvectors`, `eigenspaces`, etc.
- also do some cleaning in `to_dictionary`

URL: https://trac.sagemath.org/26630
Reported by: dcoudert
Ticket author(s): David Coudert
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager authored and vbraun committed Nov 19, 2018
2 parents 5c49a27 + 3d0db40 commit 5d8ab92
Showing 1 changed file with 326 additions and 262 deletions.
Loading

0 comments on commit 5d8ab92

Please sign in to comment.