Problems with vertices(::Graph)
defined in AlgebraicStatistics
#4426
Labels
bug
Something isn't working
vertices(::Graph)
defined in AlgebraicStatistics
#4426
There is a problem with the
vertices(::Graph)
function inexperimental/AlgebraicStatistics/src/GraphicalModels.jl
:It implicitly assumes that every vertex is connected to an edge, which probably applies to all graphs in algebraic statistics, but need not hold in general.
@bkholler: Would you mind renaming the function with a more appropriate name (e.g.,
vertices_with_positive_degree
)?Of course, for the sake of consistency, it would be nice to have a general
vertices(::Graph)
function, but how that function should look like depends on whether vertex sets of polymake graphs need to be numbered1
ton
or whether there be gaps (like{1,2,4}
).The text was updated successfully, but these errors were encountered: