Skip to content

Methods for src and dest #132

Closed
Closed
@CarloLucibello

Description

@CarloLucibello

Since Graphs.jl owns the src and dest methods, it should provide specializations for tuples and pairs given the fact that they are commonly used to represent edges:

src(e::Union{Tuple, Pair}) = e[1]
dest(e::Union{Tuple, Pair}) = e[2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions