Reduce memory usage of AnnotatedGraph by adding __slots__ to AnnotatedEdge and AnnotatedVertex types.