Esempio n. 1
0
 protected internal Node(RELATIONSHIP fromRelationship, DirectionEnum direction, string label)
     : this()
 {
     FromRelationship        = fromRelationship;
     Direction               = direction;
     FromRelationship.ToNode = this;
     Neo4jLabel              = label ?? GetNeo4jLabel();
 }
Esempio n. 2
0
        private void GetDirection(RELATIONSHIP relationship, StringBuilder sb)
        {
            switch (relationship.Direction)
            {
            case DirectionEnum.In:
                sb.Append("-");
                break;

            case DirectionEnum.Out:
                sb.Append("<-");
                break;

            case DirectionEnum.None:
                sb.Append("-");
                break;

            default:
                throw new NotSupportedException();
            }
        }