コード例 #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();
	}