I need to add some extra edges to Cora dataset using stellargraph. Is there ane way to add edges to the current dataset in stellargraph library?
import stellargraph as sg
dataset = sg.datasets.Cora()
For example in NetworkX, we can add some edges to the existing graph using add_edges_from(edgelist)
.
You can't do it directly from stellargraph since version 0.9. You'll have to use
.to_networkx()
to convert it back to networkX format, add you edges and then convert it back to stellargraph.