GetRelationship() public method

public GetRelationship ( Uri uri ) : Relationship
uri System.Uri
return Net.Graph.Neo4JD.Relationship
Exemplo n.º 1
0
        public IList <Relationship> GetAllPathsTo(Node toNode, RequestResult result)
        {
            IList <Relationship> relationShips = new List <Relationship>();
            JArray array = JArray.Parse(result.GetResponseData());

            foreach (var tkn in array)
            {
                Node node = new Node();
                node.SetLocation(new Uri(tkn["end"].ToString()));
                if (node.Id == toNode.Id)
                {
                    Relationship relationShip = _relationShipRepo.GetRelationship(new Uri(tkn["self"].ToString()));
                    relationShips.Add(relationShip);
                }
            }

            return(relationShips);
        }
Exemplo n.º 2
0
 public static Relationship Get(int relationshipID)
 {
     Persistance.RelationShipRepo db = new RelationShipRepo();
     return db.GetRelationship(relationshipID.ToString());
 }