Functions

The following functions are available globally.

  • Compare if two edges (edge objects) are equal

    Declaration

    Swift

    public func == (lhs: Edge, rhs: Edge) -> Bool

    Parameters

    lhs

    Edge object one

    rhs

    Edge Object two

    Return Value

    true if the two edges are equal; false otherwise

  • Compare if two graphs (graph objects) are equal

    Declaration

    Swift

    public func == (lhs: Graph, rhs: Graph) -> Bool

    Parameters

    lhs

    Graph object one

    rhs

    Graph Object two

    Return Value

    true if the two graphs are equal; false otherwise

  • A utility function to nicely view Tasks.

    Declaration

    Swift

    func view(_ path: Path, for type: PathType)

    Parameters

    path

    a Path object

    type

    the path type

  • A utility function to show the summary.

    Declaration

    Swift

    func summary(_ path: Path)

    Parameters

    path

    a Path object

  • Compare if two TaskNode (TaskNode objects) are equal

    TaskNode A is equal to TaskNode B is their names, successors, and predecessors are equal

    Declaration

    Swift

    public func == (lhs: TaskNode, rhs: TaskNode) -> Bool

    Parameters

    lhs

    TaskNode object one

    rhs

    TaskNode Object two

    Return Value

    true if the two edges are equal; false otherwise