⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linkedlistgraph.java

📁 最短路径和哈密顿通路
💻 JAVA
字号:


public class LinkedListGraph extends UnorderedLinkedList{
	public LinkedListGraph()
	{
		super();
	}
	public LinkedListGraph(LinkedListGraph otherGraph)
	{
		super(otherGraph);
	}
	public int getAdjacentVertices(DataElement []adjacencyList)
	{
		LinkedListNode current;
		int length=0;
		current=first;
		while(current!=null)
		{
			adjacencyList[length++]=current.info;
			current=current.link;
		}
		return length;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -