for (Edge e : g.getEachEdge()) {
groups.addElement(e);
if (e.hasAttribute("ui.style"))
stylesheet.parseStyleFromString(
new Selector(Type.EDGE, e.getId(), null),
(String) e.getAttribute("ui.style"));
groups.checkElementStyleGroup(e);
}
for (Node n : g.getEachNode()) {
groups.addElement(n);
if (n.hasAttribute("ui.style"))
stylesheet.parseStyleFromString(
new Selector(Type.NODE, n.getId(), null),
(String) n.getAttribute("ui.style"));
groups.checkElementStyleGroup(n);
}