src/main/java/com/mxgraph/analysis/mxGraphStructure.java
public static boolean isTree(mxAnalysisGraph aGraph)
	{
		if (isConnected(aGraph) && !isCyclicUndirected(aGraph) && isSimple(aGraph))
		{
			return true;
		}

		return false;
	}
/**
	 * @param aGraph
	 * @return true if the graph has the structure of a tree, regardless of edge direction
	 */
@param aGraph
@return true if the graph has the structure of a tree, regardless of edge direction
@param aGraph @return true if the graph has the structure of a tree regardless of edge direction
public static boolean isTree(mxAnalysisGraph aGraph)
	{
		if (isConnected(aGraph) && !isCyclicUndirected(aGraph) && isSimple(aGraph))
		{
			return true;
		}
		return false;
	}
public static boolean isTree ( mxAnalysisGraph aGraph ) { if ( isConnected ( aGraph ) && ! isCyclicUndirected ( aGraph ) && isSimple ( aGraph ) ) { return true ; } return false ; }
@param aGraph
 @return true if the graph has the structure of a tree, regardless of edge direction
@param aGraph @return true if the graph has the structure of a tree regardless of edge direction