📄 edgeproperties.java
字号:
package graph;
import java.io.Serializable;
public class EdgeProperties extends Properties implements Serializable
{
private int capacity;
public EdgeProperties(String label)
{
this(label, 5);
}
public EdgeProperties(String label, int newCapacity)
{
super(label);
setCapacity(newCapacity);
}
public int getCapacity()
{
return capacity;
}
public void setCapacity(int capacity)
{
this.capacity = capacity;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -