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

Allow AbstractDict for edge attributes

Open simonschoelly opened this issue 5 years ago • 1 comments

I noticed that edge attributes can be specified by a Dict but not an AbstractDict. Would it make sense to allow also AbstractDict? Then for example one could use DefaultDict from DataStructures.jl to specify some edge attributes.

simonschoelly avatar Nov 07 '20 12:11 simonschoelly

I agree, I don't think that I had any really good reasons for choosing Dict, other than that is the data structure that I use 99% of the time. Feel free to make a pull request with this feature, otherwise I will add it to my todo list.

JackDevine avatar Nov 08 '20 00:11 JackDevine