Bevisuali.Model.Workbench.LayoutAlgorithm.LayoutAlgorithm C# (CSharp) Method

LayoutAlgorithm() public method

public LayoutAlgorithm ( BayesianNetwork network, float>.IDictionary sizes, NetworkLayoutOptions options ) : System
network BayesianNetwork
sizes float>.IDictionary
options NetworkLayoutOptions
return System
            public LayoutAlgorithm(
                BayesianNetwork network,
                IDictionary<string, float> sizes,
                NetworkLayoutOptions options)
            {
                this.BayesianNetwork = network;
                this.Positions = new Dictionary<string, Point>();

                this._sizes = new Dictionary<string, Size>();
                this._options = options;

                foreach (var kvp in sizes)
                {
                    this._sizes[kvp.Key] = new Size(kvp.Value, kvp.Value);
                }
            }
Workbench.LayoutAlgorithm