Skip to content

Doc example doesn't work #25

@filchristou

Description

@filchristou

Hi, the docs examples don't work.
https://juliagraphs.org/MetaGraphsNext.jl/dev/tutorial_basics/
More specifically the instantiation of the MetaGraph:

julia> using Graphs
julia> using MetaGraphsNext
julia> colors = MetaGraph( Graph(), VertexData = String, EdgeData = Symbol, graph_data = "graph_of_colors")
ERROR: MethodError: no method matching MetaGraph(::SimpleGraph{Int64}; VertexData=String, EdgeData=Symbol, graph_data="graph_of_colors")
Closest candidates are:
  MetaGraph(::AbstractGraph{T}; Label, VertexMeta, EdgeMeta, gprops, weightfunction, defaultweight) where T at ~/.julia/packages/MetaGraphsNext/uUpGf/src/metagraph.jl:47 got unsupported keyword arguments "VertexData", "EdgeData", "graph_data"
  MetaGraph(::Graph, ::Dict{Label, Tuple{T, VertexMeta}}, ::Dict{Tuple{Label, Label}, EdgeMeta}, ::GraphMeta, ::WeightFunction, ::U, ::Dict{T, Label}) where {T<:Integer, Label, Graph, VertexMeta, EdgeMeta, GraphMeta, WeightFunction, U<:Real} at ~/.julia/packages/MetaGraphsNext/uUpGf/src/metagraph.jl:28 got unsupported keyword arguments "VertexData", "EdgeData", "graph_data"
Stacktrace:
 [1] kwerr(::NamedTuple{(:VertexData, :EdgeData, :graph_data), Tuple{DataType, DataType, String}}, ::Type, ::SimpleGraph{Int64})
   @ Base ./error.jl:163
 [2] top-level scope
   @ REPL[8]:1

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