streaming: add ostream output for graph/vertex/edge