Skip to content

Explicit type annotation of MetaGraphs #95

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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