C# Класс Smrf.NodeXL.Layouts.HarelKorenFastMultiscaleLayout

Lays out a graph using the Harel-Koren fast multiscale algorithm.
For details on the layout algorithm, see "A Fast Multi-Scale Method for Drawing Large Graphs," David Harel and Yehuda Koren, Journal of Graph Algorithms and Applications, Vol. 6 No. 3, 2002.

Most property names are identical to the names used in the Harel-Koren paper. The exception is Iterations, which is renamed .

If the graph has a metadata key of , only the vertices specified in the value's IVertex collection are laid out and all other vertices are completely ignored.

If a vertex has a metadata key of with a value of true, its location is left unmodified.

This class wraps a C# implementation written by Janez Brank at Microsoft Research Cambridge in May 2009. The code from Janez is in the file HarelKorenFastMultiscaleLayoutInternal.cs.

Наследование: LayoutBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_iLocalIterations System.Int32
m_iMinSize System.Int32
m_iRad System.Int32
m_iRatio System.Int32

Открытые методы

Метод Описание
AssertValid ( ) : void
HarelKorenFastMultiscaleLayout ( ) : System

Initializes a new instance of the HarelKorenFastMultiscaleLayout class.

Защищенные методы

Метод Описание
LayOutGraphCore ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

HarelKorenFastMultiscaleLayout() публичный Метод

Initializes a new instance of the HarelKorenFastMultiscaleLayout class.
public HarelKorenFastMultiscaleLayout ( ) : System
Результат System

LayOutGraphCore() защищенный Метод

protected LayOutGraphCore ( IGraph graph, ICollection verticesToLayOut, LayoutContext layoutContext, BackgroundWorker backgroundWorker ) : System.Boolean
graph IGraph
verticesToLayOut ICollection
layoutContext LayoutContext
backgroundWorker System.ComponentModel.BackgroundWorker
Результат System.Boolean

Описание свойств

m_iLocalIterations защищенное свойство

protected Int32,System m_iLocalIterations
Результат System.Int32

m_iMinSize защищенное свойство

protected Int32,System m_iMinSize
Результат System.Int32

m_iRad защищенное свойство

protected Int32,System m_iRad
Результат System.Int32

m_iRatio защищенное свойство

protected Int32,System m_iRatio
Результат System.Int32