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
ofshape(n_samples, 2) - graph
scipy.sparsematrixorfittedGeodesicFCM/IsomapFCM Adjacency matrix, or a fitted model whose
neighbors_graph_,labels_,cluster_centers_andbridge_edges_are used.- labels, centers
optional 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.
- Xarray_like
- Returns:
- ax
matplotlibAxes
- ax
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