Module Expr Str Import alias Import alias identifier ImportFrom alias Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Dict Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Call NameLoad Str
N/A N/A 
Read and write NetworkX graphs as JavaScript InfoVis Toolkit (JIT) format JSON.

See the `JIT documentation`_ for more examples.

Format
------
var json = [
  {
    "id": "aUniqueIdentifier",
    "name": "usually a nodes name",
    "data": {
      "some key": "some value",
      "some other key": "some other value"
     },
    "adjacencies": [
    {
      nodeTo:"aNodeId",
      data: {} //put whatever you want here
    },
    'other adjacencies go here...'
  },

  'other nodes go here...'
];
.. _JIT documentation: http://thejit.org
 N/A json N/A networkx nx networkx.utils.decorators not_implemented_for N/A __all__ N/A jit_graph jit_data jit_graph N/A N/A data N/A N/A N/A Read a graph from JIT JSON.

    Parameters
    ----------
    data : JSON Graph Object

    Returns
    -------
    G : NetworkX Graph
     N/A G N/A N/A nx Graph N/A node data N/A N/A N/A N/A G add_node N/A node N/A id N/A node N/A data N/A N/A N/A N/A node get adjacencies None N/A N/A adj N/A node N/A adjacencies N/A N/A N/A N/A G add_edge N/A node N/A id N/A adj N/A nodeTo N/A adj N/A data N/A G N/A jit_data N/A N/A G indent N/A None N/A N/A Return data in JIT JSON format.

    Parameters
    ----------
    G : NetworkX Graph

    indent: optional, default=None
        If indent is a non-negative integer, then JSON array elements and object
        members will be pretty-printed with that indent level. An indent level
        of 0, or negative, will only insert newlines. None (the default) selects
        the most compact representation.

    Returns
    -------
    data: JIT JSON string
     N/A json_graph N/A N/A node N/A N/A G nodes N/A N/A json_node N/A id name node node N/A N/A json_node N/A data N/A N/A G node N/A node N/A N/A G N/A node N/A N/A N/A json_node N/A adjacencies N/A N/A neighbour N/A G N/A node N/A N/A adjacency N/A nodeTo neighbour N/A N/A adjacency N/A data N/A N/A N/A G edge N/A node N/A neighbour N/A N/A N/A N/A json_node N/A adjacencies append adjacency N/A N/A N/A json_graph append json_node N/A N/A N/A json dumps json_graph indent indent N/A N/A not_implemented_for multigraph