fuzzyclust.graph.plot_geodesic_path#

fuzzyclust.graph.plot_geodesic_path(X, graph, source, target, ax=None, color=None)[source]#

Highlight the shortest graph path between two samples and the Euclidean chord.

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

Weighted adjacency (neighbors_graph_ of a fitted model is used when a model is given).

source, targetint

Row indices of the two samples.

axmatplotlib Axes, optional
coloroptional

Color of the path.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.graph.plot_geodesic_path#

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

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