function to test whether a graph is acyclic.
fix isAcyclic implementation.
fix lint complaints.
calculate the balance for all edges in an acyclic graph.
each edge splits a fully connected acyclic graph into two node sets. the balance is the size of the smaller of the two node sets.
make jshint happier.