Example #1
0
        public string GetAlgorithmType(IOverlapRemovalAlgorithm <TVertex> algorithm)
        {
            if (algorithm is FSAAlgorithm <TVertex> )
            {
                return("FSA");
            }

            /*else if ( algorithm is OneWayFSAAlgorithm<TVertex> )
             *      return "OneWayFSA";*/
            return(string.Empty);
        }
 /// <inheritdoc />
 public string GetAlgorithmType(IOverlapRemovalAlgorithm <TVertex> algorithm)
 {
     if (algorithm is null)
     {
         throw new ArgumentNullException(nameof(algorithm));
     }
     if (algorithm is FSAAlgorithm <TVertex> )
     {
         return(FSAAlgorithm);
     }
     if (algorithm is OneWayFSAAlgorithm <TVertex> )
     {
         return(OneWayFSAAlgorithm);
     }
     return(string.Empty);
 }