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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file info_cluster-0.9.post1.tar.gz.
File metadata
- Download URL: info_cluster-0.9.post1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6459d3a163f62304439d6bad5d3051291a91f2f9dc5edd79291bac23f153b3aa
|
|
| MD5 |
590a6637221d1a323d51a337e04b009f
|
|
| BLAKE2b-256 |
be253724ae8b447d98f5eb4f1e9f97bc49b72e06c97b7402ab8d8068b8afc272
|