/// <summary> /// Sets the outgoing edge, this incoming edge is the backward version for. /// </summary> /// <param name="myVertexType">A vertex type pre-definition.</param> /// <param name="myOutgoingEdge">An outgoing IncomingEdge pre-definition.</param> /// <returns>The reference of the current object. (fluent interface).</returns> public IncomingEdgePredefinition SetOutgoingEdge(VertexTypePredefinition myVertexType, OutgoingEdgePredefinition myOutgoingEdge) { if (myVertexType != null && myOutgoingEdge != null) AttributeType = Combine(myVertexType.VertexTypeName, myOutgoingEdge.AttributeName); return this; }
/// <summary> /// Adds an outgoing edge. /// </summary> /// <param name="myOutgoingEdgePredefinition">The definition of the outgoing IncomingEdge</param> /// <returns>The reference of the current object. (fluent interface).</returns> public VertexTypePredefinition AddOutgoingEdge(OutgoingEdgePredefinition myOutgoingEdgePredefinition) { if (myOutgoingEdgePredefinition != null) { _attributes = (_attributes) ?? new List<AttributePredefinition>(); _attributes.Add(myOutgoingEdgePredefinition); _outgoing++; } return this; }
/// <summary> /// Adds an outgoing edge. /// </summary> /// <param name="myOutgoingEdgePredefinition">The definition of the outgoing IncomingEdge.</param> /// <returns>The reference of the current object. (fluent interface).</returns> public RequestAlterVertexType AddOutgoingEdge(OutgoingEdgePredefinition myOutgoingEdgePredefinition) { if (myOutgoingEdgePredefinition != null) { _toBeAddedAttributes = (_toBeAddedAttributes) ?? new List<AttributePredefinition>(); _toBeAddedAttributes.Add(myOutgoingEdgePredefinition); AddOutgoingEdgeCount++; } return this; }