You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
336 B
21 lines
336 B
package class17;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
// 点结构的描述
|
|
public class Node {
|
|
public int value;
|
|
public int in;
|
|
public int out;
|
|
public ArrayList<Node> nexts;
|
|
public ArrayList<Edge> edges;
|
|
|
|
public Node(int value) {
|
|
this.value = value;
|
|
in = 0;
|
|
out = 0;
|
|
nexts = new ArrayList<>();
|
|
edges = new ArrayList<>();
|
|
}
|
|
}
|