public class EdgeHelper extends Object
| Constructor and Description |
|---|
EdgeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Vertex |
getOther(Edge edge,
Vertex vertex) |
static Edge |
relabelEdge(Graph graph,
Edge oldEdge,
Object newId,
String newLabel)
An edge is relabeled by creating a new edge with the same properties, but new label.
|
static void |
relabelEdges(Graph graph,
Iterable<Edge> oldEdges,
String newLabel)
Edges are relabeled by creating new edges with the same properties, but new label.
|
public static Edge relabelEdge(Graph graph, Edge oldEdge, Object newId, String newLabel)
graph - the graph to add the new edge tooldEdge - the existing edge to "relabel"newId - the id of the new edgenewLabel - the label of the new edgepublic static void relabelEdges(Graph graph, Iterable<Edge> oldEdges, String newLabel)
graph - the graph to add the new edge tooldEdges - the existing edges to "relabel"newLabel - the label of the new edgeCopyright © 2010-2014. All Rights Reserved.