Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / networkx / algorithms / node_classification / __init__.py @ 5cef0f13

History | View | Annotate | Download (780 Bytes)

1
""" This module provides the functions for node classification problem.
2

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

10
  >>> import networkx as nx
11
  >>> from networkx.algorithms import node_classification
12
  >>> G = nx.path_graph(4)
13
  >>> G.edges()
14
  EdgeView([(0, 1), (1, 2), (2, 3)])
15
  >>> G.node[0]['label'] = 'A'
16
  >>> G.node[3]['label'] = 'B'
17
  >>> node_classification.harmonic_function(G)  # doctest: +SKIP
18
  ['A', 'A', 'B', 'B']
19

20
"""
21

    
22
from networkx.algorithms.node_classification.hmn import *
23
from networkx.algorithms.node_classification.lgc import *