Source code for networkx.readwrite.json_graph.node_link

from itertools import chain, count
import networkx as nx
from networkx.utils import to_tuple

__all__ = ["node_link_data", "node_link_graph"]


_attrs = dict(source="source", target="target", name="id", key="key", link="links")