Hi !
You have to differentiate between Model Generation ( Anything related to CGA BASED ON SHAPES ) vs. creating shapes.
You want to export street graphs via a script, that is possible, by calling the export context of e.g. a GDB, where you export to. So yes, that's possible. But note the difference between exporting graph segments, shapes or models ( after CGA model generation.)
Ok ?