if (vs != null) {
catalog.removeVisualStyle(vsName);
}
// only creates the style
vs = createVisualStyle(style);
catalog.addVisualStyle(vs);
manager.setVisualStyle(vs);
// TODO: better get the view for the network
Cytoscape.getCurrentNetworkView().setVisualStyle(vs.getName());
Cytoscape.getCurrentNetworkView().applyVizmapper(vs);