# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cy <- CytoscapeConnection ()
layout.name.map <- getLayoutNameMapping (cy)
print (head (names (layout.name.map), n=3))
# [1] "Attribute Circle Layout" "Stacked Node Layout"
# [3] "Degree Sorted Circle Layout"
print (head (as.character (layout.name.map), n=3))
# [1] "attribute-circle" "stacked-node-layout" "degree-circle"
Run the code above in your browser using DataLab