anvaka/VivaGraphJS — pull request #68 by sbmkvp (2014-02-11 16:00:17+00:00)
Title: Density function for a directed graph by default.

Extended the function to give density for a directed graph (since the library usually creates directed graphs). If specifically needed the a true value can be passed to the function which will return the value for an undirected graph.