Nevron Open Vision Documentation
NBarycenterGraphLayout Class

The NBarycenterGraphLayout class represents a force directed layout, which implements the barycenter layout method.
Object Model
NBarycenterGraphLayout Class
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



Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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), Windows Server 2003 SP2

See Also


NBarycenterGraphLayout Members
Nevron.Nov.Diagram.Layout Namespace



©2022. Nevron Software LLC.

Send Feedback