SetUnspecifiedVertexLayoutAndZOrders
(
IGraph oGraph
)
{
Debug.Assert(oGraph != null);
AssertValid();
foreach (IVertex oVertex in oGraph.Vertices)
{
if ( !oVertex.ContainsKey(
ReservedMetadataKeys.SortableLayoutAndZOrder) )
{
// This causes ByMetadataVertexSorter to put the vertex at the
// end of the sort order.
oVertex.SetValue(
ReservedMetadataKeys.SortableLayoutAndZOrder,
Single.MaxValue);
}
}
}