EmptyGraphQ

EmptyGraphQ[g]

yields True if g is an empty graph and False otherwise.

Details

  • A graph is considered empty if it has no edges.

Examples

open allclose all

Basic Examples  (2)

Test whether a graph is empty:

In[1]:=
Click for copyable input
Out[1]=

Non-empty graphs:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Properties & Relations  (7)

See Also

GraphQ  Graph  UndirectedGraphQ  DirectedGraphQ

Introduced in 2010
(8.0)