CarloLucibello / GraphNeuralNetworks.jl

Graph Neural Networks in Julia
https://carlolucibello.github.io/GraphNeuralNetworks.jl/dev/
MIT License
215 stars 46 forks source link

Construct Graphs.SimpleDiGraph graphs from GNNGraphs #167

Closed CarloLucibello closed 2 years ago

CarloLucibello commented 2 years ago

We currently have SimpleGraph/SimpleDiGraph -> GNNGraph. We should add the other direction.

CarloLucibello commented 2 years ago

This is working now:

julia> using GraphNeuralNetworks, Graphs

julia> g = rand_graph(10,20)
GNNGraph:
    num_nodes = 10
    num_edges = 20

julia> g |> SimpleGraph
{10, 10} undirected simple Int64 graph