ó
 ,ľ[c           @   sá   d  Z  d d l Z d d l Z d d l Z d d l m Z e j d d  Z x e D] Z	 e	 e j
 e	 d <qS We j e  Z e j e e d d   d	 GHe j e d
 d Z e j d  d    Z d GHe j d d  d S(   s   
==========
Javascript
==========

Example of writing JSON format graph data and using the D3 Javascript library to produce an HTML/Javascript drawing.
i˙˙˙˙N(   t
   json_graphi   i   t   names   force/force.jsont   ws-   Wrote node-link JSON data to force/force.jsont   static_foldert   forces   /<path:path>c         C   s   t  j |   S(   N(   t   appt   send_static_file(   t   path(    (    s3   share/doc/networkx-2.2/examples/javascript/force.pyt   static_proxy$   s    s;   
Go to http://localhost:8000/force.html to see the example
t   porti@  (   t   __doc__t   jsont   flaskt   networkxt   nxt   networkx.readwriteR    t   barbell_grapht   Gt   nt   nodest   node_link_datat   dt   dumpt   opent   Flaskt   __name__R   t   routeR   t   run(    (    (    s3   share/doc/networkx-2.2/examples/javascript/force.pyt   <module>   s   	