func (this *stmtVisitor) graphAttrs(stmt ast.GraphAttrs) ast.Visitor { attrs := ast.AttrList(stmt).GetMap() for key, value := range attrs { this.g.AddAttr(this.graphName, key, value) } this.currentGraphAttrs = overwrite(this.currentGraphAttrs, attrs) return &nilVisitor{} }
func (this *stmtVisitor) edgeAttrs(stmt ast.EdgeAttrs) ast.Visitor { this.currentEdgeAttrs = overwrite(this.currentEdgeAttrs, ast.AttrList(stmt).GetMap()) return &nilVisitor{} }