Net.Graph.Neo4JD.Node.GetRelationshipNodes C# (CSharp) Method

GetRelationshipNodes() private method

private GetRelationshipNodes ( string direction, string element ) : IList
direction string
element string
return IList
        private IList<Node> GetRelationshipNodes(string direction, string element)
        {
            if (this.GetLocation() == null || this.Id <= 0)
                throw new Exceptions.InvalidNodeException();

            RequestResult result = _nodeRepo.GetRelatedNodes(this, direction);

            return _nodeRepo.CreateNodeArray(element, result);
        }