You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
I've been trying to get the abstraction to LightGraphs working with an AbstractGraph. But I've have not been able to get the is_directed trait to work. I was following the example from the SimpleDiGraphs implementation. I keep getting an Not Implemented error.
This is an minimal example of the error.
julia>import LightGraphs: AbstractGraph, is_directed
julia>struct LGTest <:AbstractGraph
g::Int64end
julia>is_directed(::LGTest) =true
is_directed (generic function with 8 methods)
julia>is_directed(::Type{LGTest}) =true
is_directed (generic function with 9 methods)
julia> LightGraphs.maximal_cliques(LGTest(15))
ERROR: Not implemented: is_directed
Stacktrace:
[1] is_directed(::Type{LGTest}) at /Users/rohitvarkey/.julia/v0.6/LightGraphs/src/interface.jl:116
[2] trait(...) at /Users/rohitvarkey/.julia/v0.6/SimpleTraits/src/SimpleTraits.jl:186
[3] maximal_cliques(::LGTest) at /Users/rohitvarkey/.julia/v0.6/SimpleTraits/src/SimpleTraits.jl:319
Is this the correct way of implementing the is_directed trait?
The text was updated successfully, but these errors were encountered:
I've been trying to get the abstraction to LightGraphs working with an
AbstractGraph
. But I've have not been able to get theis_directed
trait to work. I was following the example from the SimpleDiGraphs implementation. I keep getting anNot Implemented
error.This is an minimal example of the error.
Is this the correct way of implementing the
is_directed
trait?The text was updated successfully, but these errors were encountered: