require graphr only when calling graph(), closes #11