added 'directed' indicating graph mode; refs #1