PathGraphQ
PathGraphQ[g]
Examples
open allclose allBasic Examples (2)
Scope (6)
PathGraphQ works with undirected graphs:
PathGraphQ gives False for anything that is not a path graph:
Properties & Relations (8)
A path graph is loop-free if it has more than one vertex:
A path graph does not necessarily have edges:
A path graph that starts and ends in the same vertex is a cycle graph:
A path graph with no repeated vertices is a tree:
An acyclic path graph is simple:
GridGraph[{1,…,1,k,1,…,1}] are all path graphs:
A path graph is connected and each vertex has at most degree 2:
Possible Issues (1)
PathGraphQ gives False for non-explicit graphs:
Text
Wolfram Research (2010), PathGraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/PathGraphQ.html.
CMS
Wolfram Language. 2010. "PathGraphQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PathGraphQ.html.
APA
Wolfram Language. (2010). PathGraphQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PathGraphQ.html