Metadata-Version: 2.1
Name: info-cluster
Version: 0.7
Summary: a hierachical clustering algorithm based on information theory
Home-page: https://github.com/zhaofeng-shu33/info_cluster_python_binding
Author: zhaofeng-shu33
Author-email: 616545598@qq.com
License: Apache License Version 2.0
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: scikit-learn
Requires-Dist: ete3
Requires-Dist: networkx
Requires-Dist: pspartition

# info-clustering

## Usage
After installing `info_cluster` package, you can use it as follows:
```Python
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
```shell
      /-0
   /-|
--|   \-2
  |
   \-1
```

