networkx / networkx-metis

NetworkX Addon to allow graph partitioning with METIS
Other
79 stars 21 forks source link

cleanup nx decorators #64

Closed gwendolynbrook closed 4 years ago

gwendolynbrook commented 4 years ago

Only use one decorator to validate structure of nx graph.

https://github.com/networkx/networkx/blob/master/networkx/utils/decorators.py#L52

dschult commented 4 years ago

Be careful. Two sequential decorators connect as an "OR" while One decorator with two entries connect as an "AND". So, you have changed it from "not allowing directed graphs while also not allowing multigraphs" to "not allowing directed multigraphs".