Show / Hide Table of Contents

Class KKLayoutParameters

Kamada-Kawai layout algorithm parameters.

Inheritance
System.Object
NotifierObject
LayoutParametersBase
KKLayoutParameters
Implements
ILayoutParameters
IAlgorithmParameters
System.ICloneable
System.ComponentModel.INotifyPropertyChanged
Inherited Members
LayoutParametersBase.Equals(Object)
LayoutParametersBase.GetHashCode()
LayoutParametersBase.Clone()
NotifierObject.PropertyChanged
NotifierObject.OnPropertyChanged(String)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
public class KKLayoutParameters : LayoutParametersBase, ILayoutParameters, IAlgorithmParameters, ICloneable, INotifyPropertyChanged

Properties

| Improve this Doc View Source

DisconnectedMultiplier

Ideal distance between the disconnected points (1 is equal the ideal edge length).

Declaration
public double DisconnectedMultiplier { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

ExchangeVertices

Indicates that vertices can be exchanged to improve algorithm result.

Declaration
public bool ExchangeVertices { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Height

Height of the bounding box.

Declaration
public double Height { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentOutOfRangeException

Value is negative.

| Improve this Doc View Source

K

Vertex attraction constant (can be the number of vertices in the treated graph).

Declaration
public double K { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

LengthFactor

Multiplier of the ideal edge length. (With this parameter the user can modify the ideal edge length).

Declaration
public double LengthFactor { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentOutOfRangeException

Value is negative.

| Improve this Doc View Source

MaxIterations

Maximum number of the iterations.

Declaration
public int MaxIterations { get; set; }
Property Value
Type Description
System.Int32
Exceptions
Type Condition
System.ArgumentOutOfRangeException

Value is negative.

| Improve this Doc View Source

Width

Width of the bounding box.

Declaration
public double Width { get; set; }
Property Value
Type Description
System.Double
Exceptions
Type Condition
System.ArgumentOutOfRangeException

Value is negative.

Methods

| Improve this Doc View Source

GetEqualityElements()

Gets elements to take into account when comparing this LayoutParametersBase.

Declaration
protected override IEnumerable<object> GetEqualityElements()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Object>

Elements to compare.

Overrides
LayoutParametersBase.GetEqualityElements()

Implements

ILayoutParameters
IAlgorithmParameters
System.ICloneable
System.ComponentModel.INotifyPropertyChanged

Extension Methods

FactoryHelpers.CreateNewParameters<TParam>(IAlgorithmParameters)
GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape