首页>代码>ssm开发混合音乐推荐系统>/trackstacking/src/main/java/top/wangruns/trackstacking/algorithm/Edge.java
package top.wangruns.trackstacking.algorithm;

public class Edge<S, D> {
	private S sourceNode;
	private D destinateNode;
	private int weight;

	public Edge() {}

	public Edge(S sourceNode,D destinateNode,int weight) {
		this.sourceNode=sourceNode;
		this.destinateNode=destinateNode;
		this.weight=weight;
	}
	
	public Edge(S sourceNode,D destinateNode) {
		this.sourceNode=sourceNode;
		this.destinateNode=destinateNode;
	}

	public S getSourceNode() {
		return sourceNode;
	}

	public void setSourceNode(S sourceNode) {
		this.sourceNode = sourceNode;
	}

	public D getDestinateNode() {
		return destinateNode;
	}

	public void setDestinateNode(D destinateNode) {
		this.destinateNode = destinateNode;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	

}
最近下载更多
露无畏  LV13 1月6日
krispeng  LV15 2024年12月18日
zolscy  LV24 2024年11月28日
Rainbowsea  LV1 2024年11月10日
yangchengshuai  LV15 2024年10月24日
yxzzxy  LV3 2024年2月18日
zcc123276388  LV1 2023年12月29日
小谢xxxxxxx  LV4 2023年5月23日
Boss绝  LV10 2023年4月10日
Numpile  LV3 2023年2月16日
最近浏览更多
lxllxllxlLXL  LV1 5月7日
露无畏  LV13 1月6日
zolscy  LV24 2024年11月28日
Rainbowsea  LV1 2024年11月8日
yangchengshuai  LV15 2024年10月24日
13680889751  LV1 2024年6月29日
微信网友_7058156275650560  LV1 2024年6月29日
TY0165  LV20 2024年6月24日
zzgzzg99 2024年5月20日
暂无贡献等级
李俊雄  LV3 2024年5月8日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友