szhorvat / IGraphM

IGraph/M is the igraph interface for Mathematica
http://szhorvat.net/mathematica/IGraphM
Other
91 stars 17 forks source link

Make sure Q functions warning about non-graph input when appropriate #101

Closed szhorvat closed 4 years ago

szhorvat commented 4 years ago

Q functions such as IGPerfectQ should not simply return False for non-graph inputs, but also report a message.

Make sure that these functions handle mixed graphs reasonably and do not report two conflicting messages for them.

szhorvat commented 4 years ago

Won't fix because doing this causes unwanted messages when Q functions are used in argument patterns, e.g. fun[_?IGCompleteQ]