make sure self is not optional
remove n variable in graph nodes
document the named method case