<｜begin▁of▁sentence｜>### Instruction:
As a recruiter, I often need to assess the suitability of candidates for specific job roles. In the context of NetworkX, this can be compared to evaluating graphs with and without vertices. To assist with this, NetworkX provides the `__bool__` method, which can be used to determine if a graph is non-empty. Just as I screen and evaluate candidates to fill job vacancies, this method can help to identify if a graph contains vertices or is empty.
### Response:
import networkx as nx

# Create an empty graph and a non-empty graph
g_empty = nx.Graph()
g_non_empty = nx.Graph()
g_non_empty.add_node(1)

# Check if the graphs have at least one vertex
print(bool(g_empty))      # Should return False
print(bool(g_non_empty))  # Should return True
<|EOT|>
