首页>代码>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;
	}
	
	

}
最近下载更多
yxzzxy  LV3 2月18日
zcc123276388  LV1 2023年12月29日
小谢xxxxxxx  LV4 2023年5月23日
Boss绝  LV8 2023年4月10日
Numpile  LV3 2023年2月16日
568885778  LV12 2023年2月13日
LITIANYU084414  LV11 2023年1月1日
1029162867  LV13 2022年11月12日
913024733  LV15 2022年9月28日
tgeuuy  LV10 2022年8月30日
最近浏览更多
a2831244768  LV4 4月13日
玖零定制问题修复  LV34 4月4日
98879765433 3月25日
暂无贡献等级
qq_1234 1月24日
暂无贡献等级
Camellia-while  LV1 1月2日
1203093322 2023年12月31日
暂无贡献等级
zcc123276388  LV1 2023年12月29日
西瓜哥哥  LV4 2023年12月17日
qwe6002  LV9 2023年12月5日
学习中的Alice 2023年12月1日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友