Skip to content

Explicit type annotation of MetaGraphs #95

@lenianiva

Description

@lenianiva

If I have a function that returns a MetaGraph is it possible to annotate the type?

e.g.

const CustomGraph = MetaGraph(Int64, SimpleDiGraph(Int64), ...)

function create_graph()::CustomGraph
    out = CustomGraph(SimpleDiGraph())
    return out
end

This schema doesn't work, and it says "no method matching ... exists"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions