List of usage examples for weka.gui.graphvisualizer GraphVisualizer layoutGraph
public void layoutGraph()
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; }