public class Graph {
private Node node;
public void createGraph()
{
}
private class Node<K>{
K data;
List<Node> adjacent;
boolean visited;
Node()
{
adjacent = new ArrayList<Node>();
visited = false;
}
Node(K data)
{
this.data = data;
this.Node();
}
}
}
为什么编译器抱怨我不能调用 this.Node() ?