Smrf.NodeXL.Visualization.Wpf.GraphDrawer.GetVerticesToDraw C# (CSharp) Méthode

GetVerticesToDraw() protected méthode

protected GetVerticesToDraw ( IGraph oGraph ) : ICollection
oGraph IGraph
Résultat ICollection
    GetVerticesToDraw
    (
        IGraph oGraph
    )
    {
        Debug.Assert(oGraph != null);

        // Note that the ReservedMetadataKeys.SortableLayoutAndZOrderSet key is
        // used for two purposes:
        //
        // 1. It tells SortableLayoutBase to lay out the graph's vertices in a
        //    specified order.
        //
        // 2. It tells this GraphDrawer to draw the graph's vertices in the
        //    same order.

        if ( oGraph.ContainsKey(
            ReservedMetadataKeys.SortableLayoutAndZOrderSet) )
        {
            return ( ( new ByMetadataVertexSorter<Single>(
                ReservedMetadataKeys.SortableLayoutAndZOrder) ).Sort(
                    oGraph.Vertices) );
        }

        return (oGraph.Vertices);
    }