LINK - the link type.public class LinkEdge<LINK extends Link>
extends org.jgrapht.graph.DefaultWeightedEdge
link with nodes nodeA and nodeB to a graph is:
SimpleWeightedGraph<Node, LinkEdge> linkGraph = new SimpleWeightedGraph<>(LinkEdge.class); ... Link link = new Link(nodeA, nodeB, name); LinkEdge linkEdge = new LinkEdge(link); linkGraph.addEdge(nodeA, nodeB, linkEdge); linkGraph.setEdgeWeight(linkEdge, link.getLength().doubleValue());
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-04-05 21:30:47 +0200 (Tue, 05 Apr 2016) $, @version $Revision: 1889 $, by $Author: pknoppers $,
initial version Sep 12, 2014
| Modifier and Type | Method and Description |
|---|---|
LINK |
getLink() |
Copyright © 2014–2016 Delft University of Technology. All rights reserved.