/// <inheritdoc /> public string GetAlgorithmType(IEdgeRoutingAlgorithm <TVertex, TEdge, TGraph> algorithm) { if (algorithm is null) { throw new ArgumentNullException(nameof(algorithm)); } return(string.Empty); }
public string GetAlgorithmType(IEdgeRoutingAlgorithm <TVertex, TEdge, TGraph> algorithm) { if (algorithm == null) { return(string.Empty); } int index = algorithm.GetType().Name.IndexOf("EdgeRoutingAlgorithm", StringComparison.Ordinal); if (index == -1) { return(string.Empty); } string algoType = algorithm.GetType().Name; return(algoType.Substring(0, algoType.Length - index)); }
public string GetAlgorithmType(IEdgeRoutingAlgorithm <TVertex, TEdge, TGraph> algorithm) { return(string.Empty); }