public ILayoutParameters CreateParameters(string algorithmType, ILayoutParameters oldParameters)
        {
            switch (algorithmType)
            {
            case "DoubleTree":
                return(oldParameters.CreateNewParameter <DoubleTreeLayoutParameters>());

            case "BalloonTree":
                return(oldParameters.CreateNewParameter <BalloonTreeLayoutParameters>());

            case "RadialTree":
                return(oldParameters.CreateNewParameter <RadialTreeLayoutParameters>());

            default:
                return(null);
            }
        }
        public ILayoutParameters CreateParameters(string algorithmType, ILayoutParameters oldParameters)
        {
            switch (algorithmType)
            {
            case "Tree":
                return(oldParameters.CreateNewParameter <SimpleTreeLayoutParameters>());

            case "Circular":
                return(oldParameters.CreateNewParameter <CircularLayoutParameters>());

            case "FR":
                return(oldParameters.CreateNewParameter <FreeFRLayoutParameters>());

            case "BoundedFR":
                return(oldParameters.CreateNewParameter <BoundedFRLayoutParameters>());

            case "KK":
                return(oldParameters.CreateNewParameter <KKLayoutParameters>());

            case "ISOM":
                return(oldParameters.CreateNewParameter <ISOMLayoutParameters>());

            case "LinLog":
                return(oldParameters.CreateNewParameter <LinLogLayoutParameters>());

            case "EfficientSugiyama":
                return(oldParameters.CreateNewParameter <EfficientSugiyamaLayoutParameters>());

            case "Sugiyama":
                return(oldParameters.CreateNewParameter <SugiyamaLayoutParameters>());

            case "CompoundFDP":
                return(oldParameters.CreateNewParameter <CompoundFDPLayoutParameters>());

            default:
                return(null);
            }
        }