<｜begin▁of▁sentence｜>### Instruction:
As a gunsmith, I understand the importance of having detailed information about each firearm and its related equipment. Suppose we have a network of four firearms, each with unique attributes such as their model, manufacturer, and caliber. Using the `get_vertex_dataframe` function in NetworkX, we want to extract this information and organize it into a structured format like a pandas.DataFrame. This will help us easily access and analyze the attributes of each firearm, ensuring accurate record-keeping and efficient maintenance procedures.
### Response:
import igraph as ig
import pandas as pd

# Create a graph
graph = ig.Graph(edges=[(0, 1), (0, 2), (2, 3)], directed=False)
graph.vs['name'] = ['A', 'B', 'C', 'D']
graph.vs['label'] = ['Alice', 'Bob', 'Carol', 'Dave']

# Get the vertex dataframe
vertex_df = graph.get_vertex_dataframe()
print(vertex_df)
<|EOT|>
