<｜begin▁of▁sentence｜>### Instruction:
Given a simple undirected graph with two disconnected components, can you use the largest_connected_component function from graspologic to extract the largest connected component of the graph and the corresponding indices of the nodes from the original graph?
### Response:
import networkx as nx
from graspologic.utils import largest_connected_component
import numpy as np

# Create a graph with two components
G = nx.Graph()
G.add_edges_from([(1, 2), (2, 3), (3, 4), (5, 6)])

# Find the largest connected component of the graph
largest_cc_subgraph, inds = largest_connected_component(G, return_inds=True)

# Print the nodes of the largest connected component
print('Nodes in largest connected component:', largest_cc_subgraph.nodes())
# Print the indices of the nodes from the original graph
print('Indices of nodes in original graph:', inds)
<|EOT|>
