
de.uni.freiburg.iig.telematik.jagal.visualization.flexible.WeightedGraphComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JAGAL Show documentation
Show all versions of JAGAL Show documentation
JAGAL provides implementations for directed graphs (weighted and unweighted) and various types of transition systems as well as utils for graph traversal and modification.
The newest version!
package de.uni.freiburg.iig.telematik.jagal.visualization.flexible;
import de.invation.code.toval.graphic.component.DisplayFrame;
import de.uni.freiburg.iig.telematik.jagal.graph.Vertex;
import de.uni.freiburg.iig.telematik.jagal.graph.weighted.WeightedEdge;
import de.uni.freiburg.iig.telematik.jagal.graph.weighted.WeightedGraph;
public class WeightedGraphComponent, T extends Object> extends AbstractWeightedGraphComponent, T> {
private static final long serialVersionUID = 6935652350923822176L;
public WeightedGraphComponent(G graph) throws Exception {
super(graph);
}
@Override
protected String getEdgeLabel(WeightedEdge> e) {
return String.valueOf(e.getWeight());
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public static void main(String[] args) throws Exception {
WeightedGraph
© 2015 - 2025 Weber Informatics LLC | Privacy Policy