library(RGraphSpace)
library(igraph)
# Load a demo igraph
data('gtoy1', package = 'RGraphSpace')
# Create a new GraphSpace object
gs <- GraphSpace(gtoy1)
# Get the 'graph' slot in gs
getGraphSpace(gs, what = 'graph')
Run the code above in your browser using DataLab