@@ -0,0 +1,1076 @@
+package com.example.bishe111;%0Apublic class Vertex implements Comparable%3CVertex%3E%7B%0A%0A    /**%0A     * %E8%8A%82%E7%82%B9%E5%90%8D%E7%A7%B0(A,B,C,D)%0A     */%0A    private String name;%0A    %0A    public String getName() %7B%0A%09%09return name;%09%09%0A%09%7D   %0A    //%E9%9C%80%E8%A6%81%E5%88%B0%E8%BE%BE%E7%9A%84%E7%9B%AE%E7%9A%84%E5%9C%B0boolean%E5%80%BC%0A    public boolean IsClient=false;   %0A%09public boolean isIsClient() %7B%0A%09%09return IsClient;%0A%09%7D%0A%09public void setIsClient(boolean isClient) %7B%0A%09%09IsClient = isClient;%0A%09%7D%0A%09/**%0A     * %E6%9C%80%E7%9F%AD%E8%B7%AF%E5%BE%84%E9%95%BF%E5%BA%A6%0A     */%0A    private int path;%0A    public void setPath(int path) %7B%0A%09%09this.path = path;%0A%09%7D%0A    public int getPath() %7B%0A%09%09return path;%0A%09%7D    %0A    /**%0A     * %E8%8A%82%E7%82%B9%E6%98%AF%E5%90%A6%E5%B7%B2%E7%BB%8F%E5%87%BA%E5%88%97(%E6%98%AF%E5%90%A6%E5%B7%B2%E7%BB%8F%E5%A4%84%E7%90%86%E5%AE%8C%E6%AF%95)%0A     */%0A    public boolean isMarked;  %0A    public void setMarked(boolean isMarked) %7B%0A%09%09this.isMarked = isMarked;%0A%09%7D    %0A    public Vertex(String name)%7B%0A        this.name = name;%0A        this.path = Integer.MAX_VALUE; //%E5%88%9D%E5%A7%8B%E8%AE%BE%E7%BD%AE%E4%B8%BA%E6%97%A0%E7%A9%B7%E5%A4%A7%0A        this.setMarked(false);%0A    %7D    %0A    public Vertex(String name, int path)%7B%0A        this.name = name;%0A        this.path = path;%0A        this.setMarked(false);%0A    %7D    %0A    @Override%0A    public int compareTo(Vertex o) %7B%0A        return o.path %3E path?-1:1;%0A    %7D%0A%7D%0A

Create Vertex.java