Skip to content

Doc example doesn't work #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
filchristou opened this issue Apr 10, 2022 · 2 comments
Closed

Doc example doesn't work #25

filchristou opened this issue Apr 10, 2022 · 2 comments

Comments

@filchristou
Copy link
Contributor

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
@SobhanMP
Copy link

you need to update to the git version

@filchristou
Copy link
Contributor Author

true, sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants