Add sensible defaults for color and label
Use getNode/EdgeAttrib in getNodesWithAttr and getEdgesWithAttr

Also, use snapEquals() for greater consistency.
Strictify some equality comparisons