func (s Service) CreateEdge(subject HasUID, predicate string, object interface{}) error {
	c := CreateEdge{
		Subject:   subject,
		Predicate: predicate,
		Object:    object,
	}
	_, err := c.Do(s.access)
	return err
}
// CreateEdge creates a new Edge (using an NQuad).
// Return an error if the mutation fails.
// Requires a DGraphAccess with a Write transaction.
// If subject is a non-created Node than create it first ; abort if error
// If object is a non-created Node than create it first ; abort if error
CreateEdge creates a new Edge (using an NQuad).
Return an error if the mutation fails.
Requires a DGraphAccess with a Write transaction.
If subject is a non-created Node than create it first ; abort if error
If object is a non-created Node than create it first ; abort if error
// CreateEdge creates a new Edge ( using an NQuad ) . // Return an error if the mutation fails . // Requires a DGraphAccess with a Write transaction . // If subject is a non - created Node than create it first ; abort if error // If object is a non - created Node than create it first ; abort if error
func (s Service) CreateEdge(subject HasUID, predicate string, object interface{}) error {
	c := CreateEdge{
		Subject:   subject,
		Predicate: predicate,
		Object:    object,
	}
	_, err := c.Do(s.access)
	return err
}
func ( s Service ) CreateEdge ( subject HasUID , predicate string , object interface { } ) error { c := CreateEdge { Subject : subject , Predicate : predicate , Object : object , } _ , err := c . Do ( s . access ) return err }
CreateEdge creates a new Edge (using an NQuad).
CreateEdge creates a new Edge ( using an NQuad ) .