Closed emstoudenmire closed 4 months ago
Nevermind – my colleague just reviewed this report and pointed out that this is probably the expected and/or necessary behavior, since all vertices in the range 1:nv(g)
must be stored by the design of SimpleGraph
so then vertex 2 must still be present in the above example.
Description of bug Calling the
steiner_tree
function on a graph sometimes outputs a tree with extra, isolated vertices.How to reproduce One example is if the graph is
g =
then
Actual behavior
steiner_tree(g,[1,3])
with terminal vertices 1 and 3 outputs the graphwhereas
Expected behavior I would have expected the output to be
without vertex 2 being included.
Code demonstrating bug
which outputs
Version information Output from
versioninfo()
surrounded by backticks (``)Output from
] status Graphs
surrounded by backticks (`)
[86223c79] Graphs v1.11.0`