ITensor / NamedGraphs.jl

Extension of `Graphs.jl` to graphs with named vertices.
MIT License
6 stars 3 forks source link

Remove degree-zero vertices from steiner_tree output #82

Closed emstoudenmire closed 5 months ago

emstoudenmire commented 5 months ago

This PR fixes #80 by removing any vertices of degree zero from the NamedGraph output by the function steiner_tree. It also adds a test of this new behavior. (The graph already used in the previous test resulting in many degree-zero vertices so was already a good test case.)