Esempio n. 1
0
        UseMetadataVertexSorter
        (
            IGraph graph
        )
        {
            Debug.Assert(graph != null);

            this.VertexSorter =

                graph.ContainsKey(ReservedMetadataKeys.SortableLayoutAndZOrderSet)
            ?
                new ByMetadataVertexSorter <Single>(
                    ReservedMetadataKeys.SortableLayoutAndZOrder)
            :
                null;
        }
    UseMetadataVertexSorter
    (
        IGraph graph
    )
    {
        Debug.Assert(graph != null);

        this.VertexSorter =

            graph.ContainsKey(ReservedMetadataKeys.SortableLayoutAndZOrderSet)
            ? 
            new ByMetadataVertexSorter<Single>(
                ReservedMetadataKeys.SortableLayoutAndZOrder)
            :
            null;
    }
Esempio n. 3
0
        //*************************************************************************
        //  Constructor: SortableLayoutBase()
        //
        /// <summary>
        /// Initializes a new instance of the SortableLayoutBase class.
        /// </summary>
        //*************************************************************************
        public SortableLayoutBase()
        {
            m_oVertexSorter = null;

            // AssertValid();
        }