Nevron .NET Vision Documentation
NBarycenterLayout Class

The NBarycenterLayout class represents a force directed layout, which implements the barycenter layout method.
Object Model
NBarycenterLayout 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


NBarycenterLayout Members
Nevron.Diagram.Layout Namespace

Send Feedback