예제 #1
0
        public void AddOutEdge(StreamEdge outEdge)
        {
            if (outEdge.SourceId != Id)
            {
                throw new IllegalArgumentException("Source id doesn't match the StreamNode id");
            }

            OutEdges.Add(outEdge);
        }
예제 #2
0
        public void AddInEdge(StreamEdge inEdge)
        {
            if (inEdge.TargetId != Id)
            {
                throw new IllegalArgumentException("Destination id doesn't match the StreamNode id");
            }

            InEdges.Add(inEdge);
        }