public class BipartiteGraphLayout extends GraphLayout
Constructor and Description |
---|
BipartiteGraphLayout()
Creates a new bipartite graph layout.
|
BipartiteGraphLayout(boolean nonIncidentVerticesToSubset1)
Creates a new bipartite graph layout.
|
public BipartiteGraphLayout()
public BipartiteGraphLayout(boolean nonIncidentVerticesToSubset1)
nonIncidentVerticesToSubset1
- true
if non-incident vertices should be added to subset 1 or false
to add non-incident vertices to subset 2public <V extends Vertex,E extends Edge> void layout(Graph<V,E> graph, GraphView<V,E> graphView)
GraphLayout
GraphView.getVisualVertex(Vertex)
of the graph view to get the visual component of a vertex of the graph.layout
in class GraphLayout
graph
- the graphgraphView
- the graph view where the graph is displayed