adding function for export of  package graph