Metadata-Version: 2.1
Name: info-cluster
Version: 0.9.post1
Summary: a hierachical clustering algorithm based on information theory
Home-page: https://github.com/zhaofeng-shu33/info-clustering-python-binding
Author: zhaofeng-shu33
Author-email: 616545598@qq.com
License: Apache License Version 2.0
Description: # info-clustering
        [![Travis](https://api.travis-ci.com/zhaofeng-shu33/info-clustering-python-binding.svg?branch=master)](https://travis-ci.com/zhaofeng-shu33/info-clustering-python-binding)
        [![PyPI](https://img.shields.io/pypi/v/info-cluster.svg)](https://pypi.org/project/info-cluster)
        
        ## Usage
        ```shell
        pip install info-cluster
        ```
        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
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
