public GraphEdgeImpl(Edge edge) { this(edge.getMapFunction(), edge.getWeight(), edge.getFriendlyName()); }
public static String describeEdge(final Edge edge) { String edgePrefix = getEdgePrefix(edge); String itemDescription = getChildDescription(edge); return String.format("%s: %s, Map: %s, Weight: %s", edgePrefix, itemDescription, edge.getMapFunction().getClass()== SetTo.class ? String.format("%s (%s)", edge.getMapFunction().getClass().getSimpleName(), ((SetTo)edge.getMapFunction()).getStatus()) : edge.getMapFunction().getClass().getSimpleName(), edge.getWeight()); } }
public static String describeEdge(final Edge edge) { String edgePrefix = getEdgePrefix(edge); String itemDescription = getChildDescription(edge); return String.format("%s: %s, Map: %s, Weight: %s", edgePrefix, itemDescription, edge.getMapFunction().getClass()== SetTo.class ? String.format("%s (%s)", edge.getMapFunction().getClass().getSimpleName(), ((SetTo)edge.getMapFunction()).getStatus()) : edge.getMapFunction().getClass().getSimpleName(), edge.getWeight()); } }
String.format("%s × %d <i class=\"pull-right glyphicon %s\"></i>", edgeStatus.getLabel(), edge.getWeight(), impactingVertices.contains(graph.getVertexByEdgeId(edge.getId())) ? "glyphicon-flash"
m_weightField.setValue(String.valueOf(edge.getWeight()));
m_weightField.setValue(String.valueOf(edge.getWeight()));