<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Adapters example
Demonstration using the networkx adapter.  This example requires installing the networkx library before continuing
Step1:  Construct data and a simple Mapper
Step2:  Convert Mapper to a networkx graph
We can easily convert the graph to a networkx graph representation. This enables us to use many of the commonly provided algorithms and visualization methods.
<ASSISTANT_TASK:>
Python Code:
import kmapper
from sklearn import datasets
import networkx as nx
Explanation: Adapters example
Demonstration using the networkx adapter.  This example requires installing the networkx library before continuing:
pip install networkx
End of explanation
data = datasets.make_circles(n_samples=1000)[0]
km = kmapper.KeplerMapper()
lens = km.project(data)
graph = km.map(X=data, lens=lens)
Explanation: Construct data and a simple Mapper
End of explanation
nx_graph = kmapper.adapter.to_nx(graph)
nx.draw(nx_graph)
Explanation: Convert Mapper to a networkx graph
We can easily convert the graph to a networkx graph representation. This enables us to use many of the commonly provided algorithms and visualization methods.
End of explanation
<END_TASK>