public class NBarycenterGraphLayout : NForceDirectedGraphLayout, Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable
public class NBarycenterGraphLayout : NForceDirectedGraphLayout, Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable
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.
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
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)