Search this API

y.layout.hierarchic
Interface Layerer


public interface Layerer

The hierarchic layout algorithms use this interface during the phase that assigns nodes to layers.

Implementations of this interface are responsible for partitioning the nodes of the input graph in hierarchic layers.

 
Your browser does not support SVG content.

Method Summary
 int assignNodeLayer(LayoutGraph graph, NodeMap layerID, EdgeList reversedEdges)
          Assigns all nodes of the graph to layers.
 

Method Detail

assignNodeLayer

int assignNodeLayer(LayoutGraph graph,
                    NodeMap layerID,
                    EdgeList reversedEdges)
Assigns all nodes of the graph to layers.

Parameters:
graph - the given graph
layerID - the NodeMap that will be filled by the layout algorithm and returns the zero-based index of the layer to which each node belongs
reversedEdges - an EdgeList containing the edges which had been reversed
Returns:
the number of layers

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.