<｜begin▁of▁sentence｜>### Instruction:
Given an empty igraph graph and the requirement to add a new vertex with the name 'A', how would you add this vertex and print the names of all vertices in the graph? Provide an equivalent NetworkX solution to perform a similar task by adding a node with the same name to an empty NetworkX graph.
### Response:
import igraph as ig

g = ig.Graph()
g.add_vertex(name='A')
print(g.vs['name'])

# NetworkX equivalent
g_nx = nx.Graph()
g_nx.add_node('A')
print(g_nx.nodes())
<|EOT|>
