MetaGraphs.jl icon indicating copy to clipboard operation
MetaGraphs.jl copied to clipboard

default values for `get_prop`

Open filchristou opened this issue 2 years ago • 0 comments

Similar to Julia's Base.get would be nice to have get_prop(mgr::AbstractMetaGraph, v, defaultvalue), get_prop(mgr::AbstractMetaGraph, n1, n2, defaultvalue) and so on. The implementation should be super easy. Just checking with has_prop and act appropriately. Personally I would find that useful. Other opinions ?

filchristou avatar Mar 07 '22 18:03 filchristou