Closed jpacold closed 1 week ago
Could you add a release note to document the bugfixes? I'm planning to push a 0.15.1 release shortly and we can include this in it if you think it's warranted.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 128 | 129 | 99.22% | ||
<!-- | Total: | 130 | 131 | 99.24% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 1 | 98.4% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 9711339379: | 0.4% |
Covered Lines: | 18048 |
Relevant Lines: | 18843 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 128 | 129 | 99.22% | ||
<!-- | Total: | 130 | 131 | 99.24% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 1 | 98.4% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 9711339379: | 0.4% |
Covered Lines: | 18048 |
Relevant Lines: | 18843 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 128 | 129 | 99.22% | ||
<!-- | Total: | 130 | 131 | 99.24% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
rustworkx-core/src/generators/hexagonal_lattice_graph.rs | 1 | 98.4% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 9711339379: | 0.4% |
Covered Lines: | 18048 |
Relevant Lines: | 18843 |
Follow-up to #1213.
Addressed comments on the previous PR
We now pre-compute the number of edges in each graph, so that we can call
G::with_capacity(self.num_nodes, self.num_edges)
to create the graph where before we hadG::with_capacity(self.num_nodes, self.num_nodes)
Fixed two bugs in the position calculation
periodic = True
). We now get the expected result: