info-clustering
Usage
pip install info-cluster
After installing info-cluster package, you can use it as follows:
from info_cluster import InfoCluster
import networkx as nx
g = nx.Graph() # undirected graph
g.add_edge(0, 1, weight=1)
g.add_edge(1, 2, weight=1)
g.add_edge(0, 2, weight=5)
ic = InfoCluster(affinity='precomputed') # use precomputed graph structure
ic.fit(g)
ic.print_hierarchical_tree()
The output is like
/-0
/-|
--| \-2
|
\-1
Release files for info-cluster 0.9.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| info_cluster-0.9.post1.tar.gz | 3.9 kB | Details |
Release files / info_cluster-0.9.post1.tar.gz
| Download URL | info_cluster-0.9.post1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6459d3a163f62304439d6bad5d3051291a91f2f9dc5edd79291bac23f153b3aa
|
|
BLAKE2b-256 checksum How to use checksums |
be253724ae8b447d98f5eb4f1e9f97bc49b72e06c97b7402ab8d8068b8afc272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7
|