It seems obvious and easy to define the tree-ness $\tau$ of an undirected graph e.g. by the minimal number $k$ of edges one must change to make the graph a tree
$$\tau = 1 - \frac{k}{N}$$
The number $N$ has to be choosen such that the complete graph - which is maximally un-tree-ish - has $\tau = 0$. That means that $N = \frac{1}{2}(n-1)(n-2)$ for a graph with $n$ nodes. This $N$ is exactly the number of edges one has to remove to make the complete $n$-graph a tree.
The same kind of definition can be applied to any other dichotomous graph property $X$ thus measuring the $X$-ness of a graph.
My question is: Is such kind of $X$-ness actually studied and plays a role, or is it a unfruitful concept?