@Override public Collection<VertexRef> getNodesWithCoordinates() { final List<VertexRef> nodes = new ArrayList<>(); for (final Map.Entry<Integer,MapNode> entry : m_activeNodes.entrySet()) { nodes.add(new AbstractVertex("nodes", entry.getKey().toString(), entry.getValue().getNodeLabel())); } return nodes; }
@Override public Collection<VertexRef> getNodesWithCoordinates() { final List<VertexRef> nodes = new ArrayList<>(); for (final Map.Entry<Integer,MapNode> entry : m_activeNodes.entrySet()) { nodes.add(new AbstractVertex("nodes", entry.getKey().toString(), entry.getValue().getNodeLabel())); } return nodes; }
public SimpleGraphBuilder vertex(String id) { m_currentVertex = new AbstractVertex(ns(), id); m_graphProvider.addVertices(m_currentVertex); return this; }
public SimpleGraphBuilder vertex(String id) { m_currentVertex = new AbstractVertex(ns(), id); m_graphProvider.addVertices(m_currentVertex); return this; }
private AbstractVertex createEntityVertex(String vertexId, String vertexName, String iconKey) { if (containsVertexId(vertexId)) { return (AbstractVertex) getVertex(TOPOLOGY_NAMESPACE_VMWARE, vertexId); } AbstractVertex vertex = new AbstractVertex(TOPOLOGY_NAMESPACE_VMWARE, vertexId, vertexName); vertex.setIconKey(iconKey); return vertex; }
private AbstractVertex createEntityVertex(String vertexId, String vertexName, String iconKey) { if (containsVertexId(vertexId)) { return (AbstractVertex) getVertex(TOPOLOGY_NAMESPACE_VMWARE, vertexId); } AbstractVertex vertex = new AbstractVertex(TOPOLOGY_NAMESPACE_VMWARE, vertexId, vertexName); vertex.setIconKey(iconKey); return vertex; }