Пример #1
0
        public EdgeStatement(NodeId fromId, NodeId toId, IImmutableDictionary<Id, Id> attributes)
            : base(attributes)
        {
            if (fromId == null)
            {
                throw new ArgumentNullException("fromId");
            }
            if (toId == null)
            {
                throw new ArgumentNullException("toId");
            }

            this.fromId = fromId;
            this.toId = toId;
        }
Пример #2
0
 public static EdgeStatement For(NodeId fromId, NodeId toId)
 {
     return new EdgeStatement(fromId, toId, ImmutableDictionary<Id, Id>.Empty);
 }