o
    3ήc                     @   s   d Z dd Zdd ZdS )ad   This module provides the functions for node classification problem.

The functions in this module are not imported
into the top level `networkx` namespace.
You can access these functions by importing
the `networkx.algorithms.node_classification` modules,
then accessing the functions as attributes of `node_classification`.
For example:

  >>> from networkx.algorithms import node_classification
  >>> G = nx.path_graph(4)
  >>> G.edges()
  EdgeView([(0, 1), (1, 2), (2, 3)])
  >>> G.nodes[0]["label"] = "A"
  >>> G.nodes[3]["label"] = "B"
  >>> node_classification.harmonic_function(G)
  ['A', 'A', 'B', 'B']

c                 C   s   | dv r1dd l }dd l}| dkrdnd}d|  d| d| d	}|j|td
d |d|  dS | dkr=ddlm} |S | dkrIddlm} |S t	dt
 d|  )N)hmnlgc    r   harmonic_functionlocal_and_global_consistencyzThe zC  module is deprecated and will be removed in version 3.0.
Access `zx` directly from `node_classification`:

    from networkx.algorithms import node_classification
    node_classification.
   )category
stacklevel.z'networkx.algorithms.node_classification   )r   )r   zmodule z has no attribute )warnings	importlibwarnDeprecationWarningimport_moduler   r   r   r   AttributeError__name__)namer   r   fn_namemsgr   r    r   W/tmp/pip-target-vg8gfxp4/lib/python/networkx/algorithms/node_classification/__init__.py__getattr__   s,   
r   c                   C   s   ddgS )Nr   r   r   r   r   r   r   __dir__3   s   r   N)__doc__r   r   r   r   r   r   <module>   s    