I am currently studying Graph Theory and want to know the difference in between Path , Cycle and Circuit.
I know the difference between Path and the cycle but What is the Circuit actually mean.
I am currently studying Graph Theory and want to know the difference in between Path , Cycle and Circuit.
I know the difference between Path and the cycle but What is the Circuit actually mean.
All of these are sequences of vertices and edges. They have the following properties :
NOTE : For closed sequences start and end vertices are the only ones that can repeat.
Circuit = Closed Trail. Cycle = Closed Path.
– Md. Abu Nafee Ibna Zahid
Mar 06 '18 at 14:43
Usually a path in general is same as a walk which is just a sequence of vertices such that adjacent vertices are connected by edges. Think of it as just traveling around a graph along the edges with no restrictions.
Some books, however, refer to a path as a "simple" path. In that case when we say a path we mean that no vertices are repeated. We do not travel to the same vertex twice (or more).
A cycle is a closed path. That is, we start and end at the same vertex. In the middle, we do not travel to any vertex twice.
It will be convenient to define trails before moving on to circuits. Trails refer to a walk where no edge is repeated. (Observe the difference between a trail and a simple path)
Circuits refer to the closed trails, meaning we start and end at the same vertex.
Different books have different terminology in some books a simple path means in which none of the edges are repeated and a circuit is a path which begins and ends at same vertex,and circuit and cycle are same thing in these books.
Books which use the term walk have different definitions of path and circuit,here, walk is defined to be an alternating sequence of vertices and edges of a graph, a trail is used to denote a walk that has no repeated edge here a path is a trail with no repeated vertices, closed walk is walk that starts and ends with same vertex and a circuit is a closed trail.
I think I disagree with Kelvin Soh a bit, in that he seems to allow a path to repeat the same vertex, and I think this is not a common definition. I would say:
Path: Distinct vertices $v_1,\dots,v_k$ with edges between $v_i$ and $v_{i+1}$, $1 \le i \le k-1$.
Trail: A sequence of not necessarily distinct vertices $v_1,\dots,v_k$ and a sequence of edges $e_1,\dots,e_{k-1}$ such that $e_i$ connects $v_i$ and $v_{i+1}$, $1 \le i \le k-1$ and all of the $e_i$ are distinct.
Cycle: Distinct vertices $v_1,\dots, v_k$ with edges between $v_i$ and $v_{i+1}$, $1 \le i \le k-1$, and the edge $\{v_1,v_k\}$.
Circuit: A trail with the same first and last vertex.
Note: In some old texts the word circuit is sometimes used to mean cycle.
it depends on the material you are studying. I have read many articles online that says that a circuit is a closed trail, and a cycle is a closed path, which is correct.
However, the books we use in class says a circuit is a closed path and a cycle is basically a circuit. That is also correct for the context of that material and the theory used by the authors. So make sure to ask your instructor. I you are learning by yourself, I would say stick with a circuit as a closed trail, and a cycle as a closed path.
so, lest start with the terminology:
closed: first and last vertex are the same (starts and ends at the same vertex.)
open: first and last vertex are different (starts and ends at a different vertex on the graph.)
A path is a walk in which no edges and no vertices repeat.
A trail is a walk in which no edges occur more than once, all edges in the walk are unique.
A circuit should be a closed trail, but again, it could be a closed path if that is the proof being studied.
A cycle is always a closed path.
I hope that helped!