Identify trees and spanning trees (#704)

Identify trees and spanning trees (#704)

Recognise connected acyclic graphs; find subgraph that includes all vertices with no cycles.