/// <summary> /// Sets the number of neighbors for a created graph /// </summary> /// <param name="k">Number of neighbors</param> public void SetK(int k) { _graphType = KNNGraphType.SpecifiedK; _k = k; if (k <= 0) { _k = 1; } }
/// <summary> /// Sets the Generator to create minimum connectivity graphs /// </summary> public void SetMinimumConnectivity() { _graphType = KNNGraphType.MinimumConnectivity; }