<｜begin▁of▁sentence｜>### Instruction:
Given a simple NetworkX graph with nodes 'A', 'B', 'C' and edges 'AB', 'BC', how can you convert it to an igraph graph while preserving the vertex names, and how do you access these names after conversion?
### Response:
from igraph import Graph
<|EOT|>
