Packagecom.yworks.yfiles.layout.planar
Classpublic class OverlapGraphMIS
InheritanceOverlapGraphMIS Inheritance YObject Inheritance Object

This class handles the computation of the two maximum independent sets for the planarization algorithm com.yworks.yfiles.layout.planar.GT.

See also

com.yworks.yfiles.layout.planar.GT


Public Properties
 PropertyDefined By
  hiddenEdges : EdgeList
[read-only]
OverlapGraphMIS
  mIS1 : ArrayList
[read-only]
OverlapGraphMIS
  mIS2 : ArrayList
[read-only]
OverlapGraphMIS
Public Methods
 MethodDefined By
  
OverlapGraphMIS(graph:Graph, weight:EdgeMap, init:Boolean = true)
Creates a new instance of the independent set calculation class.
OverlapGraphMIS
  
computeMaximumIndependentSets(orderedNodes:NodeList, orderNumbers:Vector.<int>):void
computes two maximum independent sets of edges.
OverlapGraphMIS
  
dispose():void
Disposes no longer needed node maps.
OverlapGraphMIS
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
OverlapGraphMIS
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of the independent set calculation class.
OverlapGraphMIS
Protected Methods
 MethodDefined By
  
initOverlapGraphMIS(graph:Graph, weight:EdgeMap):void
Initializes this object.
OverlapGraphMIS
Property Detail
hiddenEdgesproperty
hiddenEdges:EdgeList  [read-only]


Implementation
    public function get hiddenEdges():EdgeList
mIS1property 
mIS1:ArrayList  [read-only]


Implementation
    public function get mIS1():ArrayList
mIS2property 
mIS2:ArrayList  [read-only]


Implementation
    public function get mIS2():ArrayList
Constructor Detail
OverlapGraphMIS()Constructor
public function OverlapGraphMIS(graph:Graph, weight:EdgeMap, init:Boolean = true)

Creates a new instance of the independent set calculation class.

Parameters
graph:Graph — the graph which defines the intervals.
 
weight:EdgeMap — weight in the MIS.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
computeMaximumIndependentSets()method
public function computeMaximumIndependentSets(orderedNodes:NodeList, orderNumbers:Vector.<int>):void

computes two maximum independent sets of edges. here independent means that the edges do not overlap (with respect to their end node's order number gained by sorting the vertices with createVertexOrder(). the result is not equivalent to the maximum bipartite graph of the overlap graph! The independent sets are stored int MIS1 and MIS2.

Parameters

orderedNodes:NodeList
 
orderNumbers:Vector.<int>

dispose()method 
public function dispose():void

Disposes no longer needed node maps.

getClass()method 
override public function getClass():Class

Returns
Class
initOverlapGraphMIS()method 
protected final function initOverlapGraphMIS(graph:Graph, weight:EdgeMap):void

Initializes this object. See the documentation of the corresponding factory method newOverlapGraphMIS() for details.

Parameters

graph:Graph
 
weight:EdgeMap

See also

newOverlapGraphMIS()method 
public static function newOverlapGraphMIS(graph:Graph, weight:EdgeMap):OverlapGraphMIS

Creates a new instance of the independent set calculation class.

Parameters

graph:Graph — the graph which defines the intervals.
 
weight:EdgeMap — weight in the MIS.

Returns
OverlapGraphMIS