Uses of Class
graph.Vertex

Uses of Vertex in graph
 

Methods in graph that return Vertex
 Vertex<E> Graph.get(Location loc)
          Returns the Vertex contained at Location loc.
 Vertex<E> Edge.getEnd1()
          Returns the first vertex from the edge.
 Vertex<E> Edge.getEnd2()
          Returns the second vertex from the edge.
 Vertex<E> Vertex.getOtherEnd(Edge<E> e)
          Given an edge, returns the vertex that is not equal to this vertex.
 Vertex<E> Graph.getVertexAt(Location l)
          Retrieves the vertex at a given location.
 Vertex<E> Graph.remove(Location loc)
          Removes and returns the vertex at the given location.
 

Methods in graph that return types with arguments of type Vertex
 java.util.Set<Vertex<E>> Graph.getComponent(Vertex<E> v)
           
 java.util.Set<Vertex<E>> Vertex.getConnectedVertices()
          Returns a set of all vertices that are connected to this vertex via edges.
 java.util.ArrayList<Vertex<E>> Vertex.getNeighbors()
          Returns all the neighbors of this vertex.
 java.util.Collection<Vertex<E>> Graph.getVertexCollection()
           
 java.util.HashMap<Location,Vertex<E>> Graph.getVertices()
          Returns the map of locations to vertices in this graph.
 java.util.Iterator<Vertex<E>> Graph.iterator()
          Returns an iterator that iterates over the vertices in the graph.
 

Methods in graph with parameters of type Vertex
 boolean Graph.add(Vertex<E> v)
          Adds a vertex at its given location to this graph.
 void Vertex.addEdgeTo(Vertex<E> v)
          Creates a new Edge object which connects this vertex to a given vertex.
 boolean Vertex.equals(Vertex<E> obj)
          Tests if the location of the two vertices are the same.
 void Graph.genMinSpanTree(Vertex<E> v)
           
 java.util.Set<Vertex<E>> Graph.getComponent(Vertex<E> v)
           
 Edge<E> Vertex.getEdgeTo(Vertex<E> v)
          Returns the edge object with which this vertex connects to a given vertex.
 boolean Vertex.hasEdgeTo(Vertex<E> v)
          Tests whether this vertex has a connection to a given vertex.
 void Vertex.removeEdgeTo(Vertex<E> v)
          If there is an edge to the given vertex, it is removed from this vertex.
Warning: This method should called from both vertex objects.
 void Edge.setEnd1(Vertex<E> end1)
          Sets a new first vertex for the edge.
 void Edge.setEnd2(Vertex<E> end2)
          Sets a new second vertex for the edge.
 

Method parameters in graph with type arguments of type Vertex
 boolean Graph.addAll(java.util.Collection<? extends Vertex<E>> arg0)
           
 

Constructors in graph with parameters of type Vertex
Edge(Vertex<E> end1, Vertex<E> end2)
          Creates a new edge with two instantiated vertices.
Edge(Vertex<E> end1, Vertex<E> end2)
          Creates a new edge with two instantiated vertices.