Closed mtfishman closed 1 year ago
Define a generic is_directed(G::Type{<:AbstractDataGraph}) = is_directed(underlying_graph_type(G)). This would then rely on concrete subtypes implementing underlying_graph_type.
is_directed(G::Type{<:AbstractDataGraph}) = is_directed(underlying_graph_type(G))
underlying_graph_type
Inspired by https://github.com/mtfishman/ITensorNetworks.jl/pull/9, since it seems like in general we should be able to deduce whether a DataGraph is directed or not from other information.
Closed by #4.
Define a generic
is_directed(G::Type{<:AbstractDataGraph}) = is_directed(underlying_graph_type(G))
. This would then rely on concrete subtypes implementingunderlying_graph_type
.Inspired by https://github.com/mtfishman/ITensorNetworks.jl/pull/9, since it seems like in general we should be able to deduce whether a DataGraph is directed or not from other information.