documentationfor yFiles for HTML 2.6

Usages of IProfitModel

Properties

profitModelin LabelingBaseGets or sets the IProfitModel for ranking the LabelCandidates for labels.

Method Return Values

create (function(LabelCandidate):number)in IProfitModelCreates an implementation of the interface IProfitModel by using the given function as implementation for its getProfit method.

Method Parameters

GenericLabeling ()in GenericLabelingCreates a new instance of GenericLabeling with default settings.
MISLabelingBase ()in MISLabelingBaseCreates a new MISLabelingBase instance with default settings.

Implementing Types

ExtendedLabelCandidateProfitModelAn IProfitModel that returns the profit of a label candidate for instances of ExtendedNodeLabelCandidate and ExtendedEdgeLabelCandidate.
SimpleProfitModelSimpleProfitModel implements the ranking for edge and node labels.