for (VertexBean vertex : list) {
List<EdgeNarrativeBean> out = vertex.getOutgoing();
if (out != null) {
for (EdgeNarrativeBean narrative : out) {
EdgeV2Bean bean = new EdgeV2Bean();
bean.setFromId(narrative.getFrom().getId());
bean.setToId(narrative.getTo().getId());
bean.setName(narrative.getName());
bean.setPath(narrative.getPath());
Map<String, String> tags = getTags(narrative.getTags());
bean.setTags(tags);
edges.add(bean);
}
}
}