NevronOpenVision
Nevron.Nov.Diagram.Layout Namespace / NBarycenterGraphLayout Class
Members
In This Topic
    NBarycenterGraphLayout Class
    In This Topic
    The NBarycenterGraphLayout class represents a force directed layout, which implements the barycenter layout method.
    Object Model
    NBarycenterGraphLayout Class
    Syntax
    Remarks
    The barycenter layout method splits the input graph into a set of fixed and free vertices. Fixed vertices are nailed to the corners of a strictly convex polygon, while free vertices are placed in the barycenter of their neighbours.

    In case there are no fixed vertices this will place all vertices at a single point, which is obviously not a good graph drawing. That is why the barycenter layout needs at least three fixed vertices.

    The minimal amount of fixed vertices is specified by the MinFixedVerticesCount property. If the input graph does not have that many fixed vertices, the layout will automatically forefill this requirement. This is done by fixing the vertices with the smallest degree.

    The attractive force pulling the vertices towards their barycenter is represented by an instance of the NBarycenterForce class, accessible from the BarycenterForce property.

    Inheritance Hierarchy

    System.Object
       Nevron.Nov.Dom.NNode
          Nevron.Nov.Dom.NDocumentNode
             Nevron.Nov.Dom.NAttribute
                Nevron.Nov.Layout.NLayoutComponent
                   Nevron.Nov.Layout.NLayout
                      Nevron.Nov.Diagram.Layout.NGraphLayoutBase<T>
                         Nevron.Nov.Diagram.Layout.NGraphLayout
                            Nevron.Nov.Diagram.Layout.NForceDirectedGraphLayout
                               Nevron.Nov.Diagram.Layout.NBarycenterGraphLayout

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also