Skip to content

Layout problems with directed graph containing many disconnected components #82

Open
@timholy

Description

@timholy

I'm attaching some files that show the result of rendering with GraphPlot (gets it wrong) and with TikzGraph (gets it right).

The data are here: https://drive.google.com/file/d/12CfjV7kv2r7EAmSQoudfMog7p9r-OAr1/view?usp=sharing

Save that to /tmp/backedges.jld2 or something similar. Then you can create the graph with

julia> using FileIO

julia> backedges = load("/tmp/backedges.jld2", "backedges");

julia> using LightGraphs

julia> g = SimpleDiGraph(length(backedges))
{652, 0} directed simple Int64 graph

julia> for (i, deps) in enumerate(backedges)
           for src in deps
               add_edge!(g, src, i)
           end
       end

and then plot g.

backedges.pdf
backedges2.pdf

With GraphPlot you can see the edges don't connect to nodes on both ends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions