A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/53RT/Highly-Connected-Subgraphs-Clustering-HCS below:

GitHub - 53RT/Highly-Connected-Subgraphs-Clustering-HCS

Highly Connected Subgraphs (HCS)

Python implementation of Hartuv, Erez, and Ron Shamir. "A clustering algorithm based on graph connectivity." Information processing letters 76.4-6 (2000): 175-181.

Based on NetworkX and Numpy

It provides the sample graph which is used in the publication. It can be created by calling:

G = hcs.create_example_graph()

Another easy way to get your graph is by passing the adjacency matrix to NetworkX

A = np.eye(4)
G = nx.convert_matrix.from_numpy_array(A)

The NetworkX graph can be clustered. There are two functions:

The clustered example graph looks like this:

And the labels are:

array([1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3], dtype=uint16)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4