/// <summary> /// Initializes a new instance of the <see cref="SimpleTreeLayoutAlgorithm{TVertex,TEdge,TGraph}"/> class. /// </summary> /// <param name="visitedGraph">Graph to layout.</param> /// <param name="verticesSizes">Vertices sizes.</param> /// <param name="parameters">Optional algorithm parameters.</param> public SimpleTreeLayoutAlgorithm( [NotNull] TGraph visitedGraph, [NotNull] IDictionary <TVertex, Size> verticesSizes, [CanBeNull] SimpleTreeLayoutParameters parameters = null) : this(visitedGraph, null, verticesSizes, parameters) { }
/// <summary> /// Initializes a new instance of the <see cref="SimpleTreeLayoutAlgorithm{TVertex,TEdge,TGraph}"/> class. /// </summary> /// <param name="visitedGraph">Graph to layout.</param> /// <param name="verticesPositions">Vertices positions.</param> /// <param name="verticesSizes">Vertices sizes.</param> /// <param name="parameters">Optional algorithm parameters.</param> public SimpleTreeLayoutAlgorithm( [NotNull] TGraph visitedGraph, [CanBeNull] IDictionary <TVertex, Point> verticesPositions, [NotNull] IDictionary <TVertex, Size> verticesSizes, [CanBeNull] SimpleTreeLayoutParameters parameters = null) : base(visitedGraph, verticesPositions, parameters) { _verticesSizes = new Dictionary <TVertex, Size>(verticesSizes); }