fuzzyclust.graph.plot_neighbors_graph#

fuzzyclust.graph.plot_neighbors_graph(X, graph, ax=None, labels=None, centers=None, show_bridges=True, **kwargs)[source]#

Draw a neighborhood graph (sparse adjacency) over the data.

Parameters:
Xarray_like of shape (n_samples, 2)
graphscipy.sparse matrix or fitted GeodesicFCM / IsomapFCM

Adjacency matrix, or a fitted model whose neighbors_graph_, labels_, cluster_centers_ and bridge_edges_ are used.

labels, centersoptional

Passed to fuzzyclust.plotting.plot_clusters().

show_bridgesbool, default=True

Draw the edges that were added to connect the components (dashed, vermilion) when a fitted model is given.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.graph.plot_neighbors_graph#

Geodesic-distance-based fuzzy clustering versus fuzzy c-means

Geodesic-distance-based fuzzy clustering versus fuzzy c-means

Geodesic paths, the S-curve, and clustering of the Isomap projection

Geodesic paths, the S-curve, and clustering of the Isomap projection