Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/networkx/algorithms/node_classification/__init__.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
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 >>> from networkx.algorithms import node_classification | |
11 >>> G = nx.path_graph(4) | |
12 >>> G.edges() | |
13 EdgeView([(0, 1), (1, 2), (2, 3)]) | |
14 >>> G.nodes[0]["label"] = "A" | |
15 >>> G.nodes[3]["label"] = "B" | |
16 >>> node_classification.harmonic_function(G) | |
17 ['A', 'A', 'B', 'B'] | |
18 | |
19 """ | |
20 | |
21 from networkx.algorithms.node_classification.hmn import * | |
22 from networkx.algorithms.node_classification.lgc import * |