Inefficiency with UndirectedSpanningTree
method for a mutable digraph
#581
Labels
difficulty: 0
A label for feature requests that should be easy
help wanted
A label for issues or PRs where help is wanted
newcomer-friendly
A label for issues that someone thought might be friendly newcomers.
performance
A label for issues or PR related to performance
The method for
UndirectedSpanningTree
forIsMutableDigraph
creates two undirected spanning forests, but it should be able to get by with creating only one:Digraphs/gap/attr.gi
Lines 2283 to 2293 in 119adb3
Specifically, an undirected spanning tree is created as part of the big
if
statement, and then again at the end.I believe that eliminating this inefficiency would need only a simple refactoring and should be an doable for a newcomer to Digraphs.
The text was updated successfully, but these errors were encountered: