src/main/java/net/floodlightcontroller/myrouting/MyRoutingDijkstra.java
/**
	 * create nodePortTuple with to switchId and add to the target list
	 * @param nodePortTupleList
	 * @param switchId
	 * @param nextSwitchId
	 */
create nodePortTuple with to switchId and add to the target list
@param nodePortTupleList
@param switchId
@param nextSwitchId
create nodePortTuple with to switchId and add to the target list @param nodePortTupleList @param switchId @param nextSwitchId
private void addNodePortTuple(List<NodePortTuple> nodePortTupleList,long switchId,long nextSwitchId) {
		Link link=getLink(switchId, nextSwitchId);
		NodePortTuple nodePortTuple=null;
		if(link!=null) {
			nodePortTuple = new NodePortTuple(link.getSrc(), link.getSrcPort());
			nodePortTupleList.add(nodePortTuple);
            nodePortTuple = new NodePortTuple(link.getDst(), link.getDstPort());
            nodePortTupleList.add(nodePortTuple);
		}		
	}
private void addNodePortTuple ( List < NodePortTuple > nodePortTupleList , long switchId , long nextSwitchId ) { Link link = getLink ( switchId , nextSwitchId ) ; NodePortTuple nodePortTuple = null ; if ( link != null ) { nodePortTuple = new NodePortTuple ( link . getSrc ( ) , link . getSrcPort ( ) ) ; nodePortTupleList . add ( nodePortTuple ) ; nodePortTuple = new NodePortTuple ( link . getDst ( ) , link . getDstPort ( ) ) ; nodePortTupleList . add ( nodePortTuple ) ; } }
create nodePortTuple with to switchId and add to the target list
 @param nodePortTupleList
 @param switchId
 @param nextSwitchId
create nodePortTuple with to switchId and add to the target list @param nodePortTupleList @param switchId @param nextSwitchId