graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientVertex.java
public OrientEdge addEdge(String label, final OrientVertex inVertex, final String iClassName, final String iClusterName,
      final Object... fields) {

    if (inVertex == null)
      throw new IllegalArgumentException("destination vertex is null");

    final OrientBaseGraph graph = getGraph();
    if (graph != null)
      return graph.addEdgeInternal(this, label, inVertex, iClassName, iClusterName, fields);

    // IN MEMORY CHANGES ONLY: USE NOTX CLASS
    return OrientGraphNoTx.addEdgeInternal(null, this, label, inVertex, iClassName, iClusterName, fields);
  }
public OrientEdge addEdge(String label, final OrientVertex inVertex, final String iClassName, final String iClusterName,
      final Object... fields) {

    if (inVertex == null)
      throw new IllegalArgumentException("destination vertex is null");

    final OrientBaseGraph graph = getGraph();
    if (graph != null)
      return graph.addEdgeInternal(this, label, inVertex, iClassName, iClusterName, fields);

    // IN MEMORY CHANGES ONLY: USE NOTX CLASS
    return OrientGraphNoTx.addEdgeInternal(null, this, label, inVertex, iClassName, iClusterName, fields);
  }
Creates an edge between current Vertex and a target Vertex setting label as Edge's label. The fields parameter is an Array of
fields to set on Edge upon creation. Fields must be a odd pairs of key/value or a single object as Map containing entries as
key/value pairs. iClusterName is the name of the cluster where to store the new Edge.

@param label        Edge's label or class
@param inVertex     Outgoing target vertex
@param fields       Fields must be a odd pairs of key/value or a single object as Map containing entries as key/value pairs
@param iClassName   Edge's class name
@param iClusterName The cluster name where to store the edge record

@return The new Edge created