Fixes #14 for graphs.