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
ofshape(n_samples, 2) - graph
scipy.sparsematrixorfittedmodel Weighted adjacency (
neighbors_graph_of a fitted model is used when a model is given).- source, target
int Row indices of the two samples.
- ax
matplotlibAxes,optional - color
optional Color of the path.
- Xarray_like
- Returns:
- ax
matplotlibAxes
- ax
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