First pass at fixing graphy_by_name

Just getting it working at this stage
Merge pull request #67 from cornet/PR59-fixes

Fixup graph_by_name