adds has_cycles for is_tree
minor correction
test update
Merge pull request #506 from nontas/is_tree

is_tree update in Graph