예제 #1
0
 public bool areAdjacent(Vertex v, Vertex w)
 {
     foreach (Vertex cur in v.adjacentVertices())
     {
         if (cur.Equals(w))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
	public bool areAdjacent(Vertex v, Vertex w)
	{
		foreach (Vertex cur in v.adjacentVertices())
			if (cur.Equals(w))
				return true;
		return false;
	}
예제 #3
0
 public IEnumerable <Vertex> adjacentVertices(Vertex v)
 {
     return(v.adjacentVertices());
 }
예제 #4
0
	public IEnumerable<Vertex> adjacentVertices(Vertex v)
	{
		return v.adjacentVertices();
	}