/** * An edge for the dynamic graph * * @param info - the info contained in the edge * @param weight - the weight of the edge * @param fromNode - the origin node of the edge * @param toNode - the end node of the edge */ public GraphEdge( EdgeType info, double weight, GraphNode<NodeType, EdgeType> fromNode, GraphNode<NodeType, EdgeType> toNode) { _fromNode = fromNode; _toNode = toNode; _info = info; _weight = weight; fromNode.addOutgoingEdge(this); toNode.addIncomingEdge(this); }