@Override public void removeEdge(final Edge edge) { graph.removeEdge(edge); }
public boolean removeEdge(final Edge edge) { this.graph.removeEdge(edge); return true; }
public void removeEdge(final Edge edge) { config.getConfiguredGraph().removeEdge(edge); }
public void removeEdge(final Edge edge) { this.baseGraph.removeEdge(((WrappedEdge) edge).getBaseEdge()); }
public void removeEdge(final Edge edge) { config.getConfiguredGraph().removeEdge(edge); }
public void removeEdge(final Edge edge) { this.baseGraph.removeEdge(((PartitionEdge) edge).getBaseEdge()); }
boolean removeEdge(Relationship relationship) { Edge edge = graph.getEdge(relationship.getId()); if (null != edge) { graph.removeEdge(edge); return true; } else { return false; } }
/** * Raises an edgeRemoved event. */ public void removeEdge(final Edge edge) { Edge edgeToRemove = edge; if (edge instanceof EventEdge) { edgeToRemove = ((EventEdge) edge).getBaseEdge(); } Map<String, Object> props = ElementHelper.getProperties(edge); this.baseGraph.removeEdge(edgeToRemove); this.onEdgeRemoved(edge, props); }
/** * Edges are relabeled by creating new edges with the same properties, but new label. * Note that for each edge is deleted and an edge is added. * * @param graph the graph to add the new edge to * @param oldEdges the existing edges to "relabel" * @param newLabel the label of the new edge */ public static void relabelEdges(final Graph graph, final Iterable<Edge> oldEdges, final String newLabel) { for (final Edge oldEdge : oldEdges) { final Vertex outVertex = oldEdge.getVertex(Direction.OUT); final Vertex inVertex = oldEdge.getVertex(Direction.IN); final Edge newEdge = graph.addEdge(null, outVertex, inVertex, newLabel); ElementHelper.copyProperties(oldEdge, newEdge); graph.removeEdge(oldEdge); } }
/** * An edge is relabeled by creating a new edge with the same properties, but new label. * Note that an edge is deleted and an edge is added. * * @param graph the graph to add the new edge to * @param oldEdge the existing edge to "relabel" * @param newId the id of the new edge * @param newLabel the label of the new edge * @return the newly created edge */ public static Edge relabelEdge(final Graph graph, final Edge oldEdge, final Object newId, final String newLabel) { final Vertex outVertex = oldEdge.getVertex(Direction.OUT); final Vertex inVertex = oldEdge.getVertex(Direction.IN); final Edge newEdge = graph.addEdge(newId, outVertex, inVertex, newLabel); ElementHelper.copyProperties(oldEdge, newEdge); graph.removeEdge(oldEdge); return newEdge; }