コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="outsideDepth"></param>
        public void ComputeDepth(int outsideDepth)
        {
            ClearVisitedEdges();
            // find an outside edge to assign depth to
            DirectedEdge de = finder.Edge;

            // right side of line returned by finder is on the outside
            de.SetEdgeDepths(Positions.Right, outsideDepth);
            CopySymDepths(de);
            ComputeDepths(de);
        }
コード例 #2
0
ファイル: BufferSubgraph.cs プロジェクト: carlhuth/GenXSource
        public void ComputeDepth(int outsideDepth)
        {
            ClearVisitedEdges();
            // find an outside edge to assign depth to
            DirectedEdge de    = _finder.GetEdge();
            Node         n     = de.Node;
            Label        label = de.Label;

            // right side of line returned by finder is on the outside
            de.SetEdgeDepths(Position.Right, outsideDepth);

            ComputeNodeDepth(n, de);
        }