I would like to avoid this type of message and deal with the input to ToEntity differently, if Mathematica does not recognize the entity.
ToEntity[RandomGraph[{8, 15}], "Graph"]
Is there a simple If command for that?
I would like to avoid this type of message and deal with the input to ToEntity differently, if Mathematica does not recognize the entity.
ToEntity[RandomGraph[{8, 15}], "Graph"]
Is there a simple If command for that?
Iff you don't want to see a message again, you can just turn it Off:
Off[ToEntity::noentp]