Source code of connectivity graph

Using the connectivity graph display outside of Brainstorm would be very complicated, as it is tightly integrated with the application and the database.
It would be much easier to save your results as connectivity files in the Brainstorm database, and use directly the visualization tools from there.

Compute some connectivity results with the same dimension as your own results with Brainstorm, then modify only the TF field in the .mat file.

The storage of the various fields is documented here:
https://neuroimage.usc.edu/brainstorm/Tutorials/TimeFrequency#On_the_hard_drive