Classes

The following classes are available globally.

  • An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.

    See more

    Declaration

    Swift

    open class WeightedGraph<V, W> : Graph where V : Decodable, V : Encodable, V : Equatable, W : Decodable, W : Encodable, W : Equatable
  • Implements a queue - helper class that uses an array internally.

    See more

    Declaration

    Swift

    public class Queue<T>
  • Implements a stack - helper class that uses an array internally.

    See more

    Declaration

    Swift

    public class Stack<T>
  • An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.

    See more

    Declaration

    Swift

    open class UniqueElementsGraph<V, E> : Graph where V : Decodable, V : Encodable, V : Equatable, E : Equatable, E : Edge
  • An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.

    See more

    Declaration

    Swift

    open class UnweightedGraph<V> : Graph where V : Decodable, V : Encodable, V : Equatable