added `directed` property to graph and edge

defaults to *JSON true* indicating *directed*

closes #1