Skip to content

Conversation

@hexaeder
Copy link
Collaborator

@hexaeder hexaeder commented Dec 5, 2024

using CairoMakie,GraphMakie,NetworkLayout
sgkeys = [:bull, :chvatal, :cubical, :desargues,
            :diamond, :dodecahedral, :frucht, :heawood,
            :house, :housex, :icosahedral, :karate, :krackhardtkite,
            :moebiuskantor, :octahedral, :pappus, :petersen,
            :sedgewickmaze, :tetrahedral, :truncatedcube,
            :truncatedtetrahedron, :truncatedtetrahedron_dir, :tutte]
gs = filter(!is_directed, smallgraph.(sgkeys))
absdim = mapreduce(nv, +, gs)
adj = zeros(Int, absdim, absdim);
let i = 1
    for g in gs
        r = i:i+nv(g)-1
        adj[r, r] .= adjacency_matrix(g)
        i += nv(g)
    end
end
g = SimpleGraph(adj)
graphplot(g; layout=Stress())

image

@hexaeder hexaeder merged commit 4ce059e into master Dec 16, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants