documentationfor yFiles for HTML 3.0.0.3

Properties

metricin KMeansClusteringGets or sets a metric to determine the distance between nodes and between nodes and centroids.

Method Return Values

from (KMeansDistanceMetric)in KMeansDistanceMetricConverts the given argument to an enum constant of this enum type.

Method Parameters

KMeansClustering ()in KMeansClustering
from (KMeansDistanceMetric)in KMeansDistanceMetricConverts the given argument to an enum constant of this enum type.
getName (KMeansDistanceMetric)in KMeansDistanceMetricReturns the name of the given enum constant.
kMeansClustering (LayoutGraph, IMapper<LayoutNode,number>, IMapper<LayoutNode,Point>, KMeansDistanceMetric, number, number?, Point?)in LayoutGraphAlgorithmsPartitions the graph into clusters using the k-means clustering algorithm.