/// <summary> /// Removes the overlap by using the default settings. /// </summary> /// <param name="nodes"></param> /// <param name="nodeSeparation"></param> public static void RemoveOverlaps(Node[] nodes, double nodeSeparation) { var settings = new OverlapRemovalSettings { RandomizeAllPointsOnStart = true, NodeSeparation = nodeSeparation }; var mst = new OverlapRemoval(settings, nodes); mst.RemoveOverlaps(); }
public static void RemoveOverlapsForLayers(Node[] nodes, Size[] sizesOnLayers) { var settings = new OverlapRemovalSettings { RandomizeAllPointsOnStart = true, }; var mst = new OverlapRemoval(settings, nodes, sizesOnLayers); mst.RemoveOverlaps(); }
/// <summary> /// Removes the overlap by using the default settings. /// </summary> /// <param name="nodes"></param> /// <param name="nodeSeparation"></param> public static void RemoveOverlaps(Node[] nodes, double nodeSeparation) { var settings = new OverlapRemovalSettings { RandomizeAllPointsOnStart = true, NodeSeparation = nodeSeparation }; var mst = new OverlapRemoval(settings, nodes); mst.RemoveOverlaps(); }
public static void RemoveOverlapsForLayers(Node[] nodes, Size[] sizesOnLayers) { var settings = new OverlapRemovalSettings { RandomizeAllPointsOnStart = true, }; var mst = new OverlapRemoval(settings, nodes, sizesOnLayers); mst.RemoveOverlaps(); }