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

feature request: need `squash()` for MetaGraph and MetaDiGraph

Open zhangliye opened this issue 5 years ago • 1 comments

Need squash() for MetaGraph and MetaDiGraph

zhangliye avatar May 11 '20 16:05 zhangliye

I think such a feature would make sense.

But such a feature should only squash the topological information (i.e the wrapped graph) and not any metadata.

Dictionaries with meta data should be copied. What is not exactly clear here is, if the elements of the dictionaries should be copied with copy or deepcopy. Maybe an additional kwargs flag would be useful here?

simonschoelly avatar Sep 30 '20 21:09 simonschoelly