ITensor / DataGraphs.jl

A simple graph type with data on the vertices and edges.
MIT License
12 stars 3 forks source link

Define a generic `is_directed(::Type{<:AbstractDataGraph})` #3

Closed mtfishman closed 1 year ago

mtfishman commented 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.

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.

mtfishman commented 1 year ago

Closed by #4.