コード例 #1
0
        public DirectedVertex <T>[] GetSources()
        {
            var set = new DirectedVertex <T> [Indegree];

            for (var i = 0; i < Indegree; i++)
            {
                set[i] = IncomingEdges[i].Source;
            }
            return(set);
        }
コード例 #2
0
        public DirectedVertex <T>[] GetTargets()
        {
            var set = new DirectedVertex <T> [Outdegree];

            for (var i = 0; i < Outdegree; i++)
            {
                set[i] = OutgoingEdges[i].Target;
            }
            return(set);
        }