@Override public List<String> getHierarchicalId() { List<String> ids = new ArrayList<String>(); for (Graph graph : getHierarchy()) { ids.add(graph.getLabel()); } ids.add(getName()); return ids; }
@Override public String getHierarchicalName() { StringBuilder builder = new StringBuilder(); for (Graph graph : getHierarchy()) { builder.append(graph.getLabel()); builder.append('_'); } builder.append(getName()); return builder.toString(); }