Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

plot function returns "nothing" #210

@antoinemessager

Description

@antoinemessager

I am currently trying to plot graphs. I installed both GraphViz and Graph packages. I then try to follow the example given in the documentation (and written below). I first had to deal with the issue listed here #172. Thus I changed the dot.jl file in order to use the png instead of the x11 format as explained here #176. The error disappeared but now when I want to plot a graph the display function returns "nothing":

julia> using Graphs

julia> g = simple_graph(3)
Directed Graph (3 vertices, 0 edges)

julia> add_edge!(g, 1, 2)
edge [1]: 1 -- 2

julia> add_edge!(g, 3, 2)
edge [2]: 3 -- 2

julia> add_edge!(g, 3, 1)
edge [3]: 3 -- 1

julia> display(plot(g))
Nothing

Thank you for your help,
Antoine

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