sbromberger / MetaGraphs.jl

I never metagraph I didn't like.
Other
94 stars 24 forks source link

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

Open zhangliye opened 4 years ago

zhangliye commented 4 years ago

Need squash() for MetaGraph and MetaDiGraph

simonschoelly commented 4 years ago

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?