/** * Returns a string representation of the edge. */ public String toString() { if (setCurrentGraphInThreadLocal() != null) { if (getLabel() == null) return StringFactory.E + StringFactory.L_BRACKET + getId() + StringFactory.R_BRACKET + StringFactory.L_BRACKET + getVertex( Direction.OUT).getId() + StringFactory.ARROW + getVertex(Direction.IN).getId() + StringFactory.R_BRACKET; return StringFactory.edgeString(this); } else return StringFactory.E + StringFactory.L_BRACKET + getId(); }
public String toString() { graph.setCurrentGraphInThreadLocal(); if (getLabel() == null) return StringFactory.E + StringFactory.L_BRACKET + getId() + StringFactory.R_BRACKET + StringFactory.L_BRACKET + getVertex(Direction.OUT).getId() + StringFactory.ARROW + getVertex(Direction.IN).getId() + StringFactory.R_BRACKET; return StringFactory.edgeString(this); }
document.field("relationLink", (ORecordId) edgeList.get(0).getId());
json.beginObject(); json.beginObject(1, false, "ae"); json.beginObject(2, false, edge.getId()); json.writeAttribute(3, false, "directed", false);
} else OLogManager.instance().debug(graph, "Found broken link to outgoing vertex " + outVertex.getIdentity() + " while removing edge " + edge.getId()); } else OLogManager.instance().debug(graph, "Found broken link to incoming vertex " + inVertex.getIdentity() + " while removing edge " + edge.getId());