Example usage for weka.gui.graphvisualizer GraphVisualizer layoutGraph

List of usage examples for weka.gui.graphvisualizer GraphVisualizer layoutGraph

Introduction

In this page you can find the example usage for weka.gui.graphvisualizer GraphVisualizer layoutGraph.

Prototype

public void layoutGraph() 

Source Link

Document

This method lays out the graph by calling the LayoutEngine's layoutGraph() method.

Usage

From source file:adams.flow.sink.WekaGraphVisualizer.java

License:Open Source License

/**
 * Displays the token (the panel and dialog have already been created at
 * this stage)./* w w  w . j ava2 s .  co m*/
 *
 * @param token   the token to display
 */
@Override
protected void display(Token token) {
    GraphVisualizer visualizer;

    clearPanel();

    visualizer = createGraphVisualizer(token);
    if (visualizer != null) {
        m_Panel.add(visualizer, BorderLayout.CENTER);
        visualizer.layoutGraph();
    }
}

From source file:de.fub.maps.project.detector.model.inference.impl.ShowGraphAction.java

License:Open Source License

private JComponent createBayesGraph(String graphDescriptor) throws BIFFormatException {
    GraphVisualizer graphVisualizer = new GraphVisualizer();
    graphVisualizer.readBIF(graphDescriptor);
    graphVisualizer.layoutGraph();
    return graphVisualizer;
}